From 686f2fa23b0cf05c0b446011c655eca2d4284419 Mon Sep 17 00:00:00 2001 From: MrGliff <68629743+MrGliff@users.noreply.github.com> Date: Mon, 6 May 2024 20:22:01 +0530 Subject: [PATCH] fix(learn): Added hint for 'this' keyword (#54653) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../63f03686c5ea863533ec71f4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63f03686c5ea863533ec71f4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63f03686c5ea863533ec71f4.md index c97d2b53781..409441e7002 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63f03686c5ea863533ec71f4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63f03686c5ea863533ec71f4.md @@ -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];