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 20:22:01 +05:30
committed by GitHub
parent 80351c122e
commit 686f2fa23b

View File

@@ -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];