From fd3fbf50e5001913ef6cdd5ee5cd3f30531971c0 Mon Sep 17 00:00:00 2001 From: Debalina Date: Sun, 17 Feb 2019 19:11:19 -0800 Subject: [PATCH] (chore) add mdn link for let and const (#29829) * (chore) add mdn link for let and const Add further reading section and included mdn link for let and const * fix: corrected link syntax --- guide/english/javascript/es6/let-and-const/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guide/english/javascript/es6/let-and-const/index.md b/guide/english/javascript/es6/let-and-const/index.md index 6bfa3f940b..61c30f27de 100644 --- a/guide/english/javascript/es6/let-and-const/index.md +++ b/guide/english/javascript/es6/let-and-const/index.md @@ -81,3 +81,8 @@ console.log(LANGUAGES); // ['Js', 'Ruby', 'Python', 'Go', 'Java'] This may be little confusing. Consider in this way. Whenever you define a const variable, Javascript references the address of the value to the variable. In our example the variable ‘LANGUAGES’ actually references to the memory allocated to the array. So you cannot change the variable to reference some other memory location later. Throughout the program it only references to the array. + +## Further Reading + +* [MDN - let](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) +* [MDN - const](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)