Web design & 😃 development
What is output of the above code?
Please try this one!!
Web design & 😃 development
What is output of the above code?
🅰️NSWER 🔵
Because of the event queue in JavaScript, the setTimeout callback function is called after the loop has been executed. Since the variable i in the first loop was declared using the var keyword, this value was global. During the loop, we incremented the value of i by 1 each time, using the unary operator ++. By the time the setTimeout callback function was invoked, i was equal to 3 in the first example.
In the second loop, the variable i was declared using the let keyword: variables declared with the let (and const) keyword are block-scoped (a block is anything between { }). During each iteration, i will have a new value, and each value is scoped inside the loop.
Because of the event queue in JavaScript, the setTimeout callback function is called after the loop has been executed. Since the variable i in the first loop was declared using the var keyword, this value was global. During the loop, we incremented the value of i by 1 each time, using the unary operator ++. By the time the setTimeout callback function was invoked, i was equal to 3 in the first example.
In the second loop, the variable i was declared using the let keyword: variables declared with the let (and const) keyword are block-scoped (a block is anything between { }). During each iteration, i will have a new value, and each value is scoped inside the loop.
What is the output of the above code?
Anonymous Quiz
49%
20 and 62.83185307179586
30%
20 and NaN
11%
20 and 63
11%
NaN and 63
This media is not supported in your browser
VIEW IN TELEGRAM
Try to make this animation. After 10-12 hours source code will be given. Everyone should try.😊
Some useful CSS animation
http://www.justinaguilar.com/animations/index.html#
http://www.justinaguilar.com/animations/index.html#
Play with CSS grid
https://alialaa.github.io/css-grid-cheat-sheet/
https://alialaa.github.io/css-grid-cheat-sheet/
This media is not supported in your browser
VIEW IN TELEGRAM
Hi awesome friends 💗💗
Try to make this sign in sign up form. Code will be provided after 10-12 hrs
Try to make this sign in sign up form. Code will be provided after 10-12 hrs
This media is not supported in your browser
VIEW IN TELEGRAM
Try these loaders. Soon code will be available 😊
This media is not supported in your browser
VIEW IN TELEGRAM
Try to make this animation. Source code will be provided soon✨✨
Everyone should join this course. Complete website design/ development course. Don't forget to apply coupon code. If you enrolled, just give a like.
https://www.udemy.com/share/101GcU/
Coupon 👉 YOUACCEL46793
.
.
.
.
.
Get free learning materials on telegram
https://news.1rj.ru/str/WebsiteDesignLearningGroup
https://www.udemy.com/share/101GcU/
Coupon 👉 YOUACCEL46793
.
.
.
.
.
Get free learning materials on telegram
https://news.1rj.ru/str/WebsiteDesignLearningGroup
Udemy
Web Development Masterclass - Online Certification Course
Cloud Computing | Web Apps | Linux | Web Servers | DBMS | LAMP Stack | HTML | CSS | JavaScript | PHP | + More