fix(learn): Added hint for 'this' keyword (#54653)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
MrGliff
2024-05-06 07:52:01 -07:00
committed by GitHub
co-authored by Huyen Nguyen
parent 80351c122e
commit 686f2fa23b
@@ -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];