Basic JavaScript - Local Scope and Functions

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
cam you please help me

function myLocalScope() {
// Only change code below this line
Var myVar;
  console.log('inside myLocalScope', myVar);

// Run and check the console
// myVar is not defined outside of myLocalScope
console.log('outside myLocalScope', myVar);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Local Scope and Functions

Link to the challenge:

Keywords like var are case sensitive in javascript, for example:

var someNum = 1; // valid js

Var someOtherNum = 2; // SyntaxError

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.