Skip to content

Commit

Permalink
fix(learn): Added hint for 'this' keyword (#54653)
Browse files Browse the repository at this point in the history
Co-authored-by: Huyen Nguyen <[email protected]>
  • Loading branch information
dharminnagar and huyenltnguyen committed May 6, 2024
1 parent 80351c1 commit 686f2fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const afterCalculateTotal = code.split('calculateTotal')[1];
assert.match(afterCalculateTotal, /const\s+tax\s*=/);
```

Assign the value of calling your new `.calculateTaxes()` method, passing `subTotal` as the argument, to the `tax` variable.
Assign the value of calling your new `.calculateTaxes()` method, passing `subTotal` as the argument, to the `tax` variable. Remember to use the `this` keyword.

```js
const afterCalculateTotal = code.split('calculateTotal')[1];
Expand Down

0 comments on commit 686f2fa

Please sign in to comment.