• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0
Ex var x; function h() {//can use x } ex 2 var x =1 function h() {var x=2 } //x=2 var x=1 function h() {let x=2 //x=2 } //x=1 Check this https://www.w3schools.com/js/js_let.asp
7th Sep 2018, 7:34 AM
Daniele Bonomi
Daniele Bonomi - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Memorizing
2 Votes
How to center a div in CSS?
3 Votes
123
0 Votes
Bachelor's c programming project for 1st semester
0 Votes
Are sololearn certificates a valid proof of knowledge?
1 Votes
How can I make calculator
0 Votes
How can I get help
0 Votes
Why do phone calls still convert better than forms in marketing?
1 Votes
Minecraft code
0 Votes
In this C code how that variable int i is accessing the marks element as I've declared it separately,
1 Votes