mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
fix(curriculum): replace smart quotes with straight quotes (#64471)
This commit is contained in:
parent
33d97f5ed7
commit
f5ee8780bc
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user