mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-28 05:01:24 -05:00
fix(curriculum): replace smart quotes with straight quotes (#64471)
This commit is contained in:
@@ -52,7 +52,7 @@ We also have a new `showPrice` method. In this method, we print a descriptive me
|
||||
|
||||
Notice how we're using the `this` keyword to access the properties of the object within the `showPrice` method.
|
||||
|
||||
What value will the `this` keyword have in the context of this method? It will refer to the object on which the method is being called. In this case, we're creating a new Dessert instance with the name `“Brownie”` and the price `$5.99`:
|
||||
What value will the `this` keyword have in the context of this method? It will refer to the object on which the method is being called. In this case, we're creating a new Dessert instance with the name `"Brownie"` and the price `$5.99`:
|
||||
|
||||
```js
|
||||
const brownie = new Dessert("Brownie", 5.99);
|
||||
|
||||
Reference in New Issue
Block a user