whip

Untitled

Apr 2nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. / Example Code: Reference this code for the next Exercise
  2. let school = 'Lambda';
  3. let className = 'Intro to Web Dev'
  4.  
  5. function nameMySchool(){
  6. let className = "Web Development Fundamentals"
  7. console.log(school); <--- Line 7
  8. }
  9.  
  10. nameMySchool();
  11. console.log(className);
  12. // Do not change any code above this line!
  13.  
  14.  
  15. // Exercise One:
  16. // Part One: Create a variable called 'inFunction' and
  17. // assign it to the value that will be logged
  18. // on line 7.
  19.  
  20. var inFunction = "school";
Advertisement
Add Comment
Please, Sign In to add comment