Local scope and function

Tell us what’s happening:
Yo! alittle help please, am stack.

Your code so far

function myLocalScope() {  

var myVar = 5;
// Only change code below this line



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Local Scope and Functions

Link to the challenge:

How, exactly? What’s the issue?

It says I should add a local variable

You removed 'use strict'

Add it back. Like so:

function myLocalScope() {
'use strict'; // <---- add this back.
var myVar=4
  // Only change

But your idea is right. Before passing to the next ex. I recommend you to look carefully at the console.log.

1 Like

Thank you bro, about time

1 Like

no worries man, keep it up :slight_smile: