Spoken Tutorials - JavaScript Assignment Funded by the Ministry of Education (MoE), GOI Indian Institute of Technology Bombay, https://spoken-tutorial.org ------------------------------------------------------------- Variable, Scopes and Hoisting in JS 1. Open the file "assignment.js" 2. Clear the existing code 3. Log the value "x" in console first before declaring "x" value 4. Declare a variable "x" using "const" below the log statement 5. Open the file "MyPage.html" in a web browser 6. Observe the output in the browser's console 7. An error is observed 8. Reason: Recall that the variables declared with const will not be hoisted