Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. What is different Between const, let, var
- 2. What is closure
- 3. In what order will this code execute:
- console.log('1');
- setTimeout(function() {
- console.log('2');
- })
- console.log('3');
- setTimeout(function() {
- console.log('4')
- }, 200);
- 4. What will happen if we execute this code:
- var food = 'Hamburger';
- var food = 'Pizza'
- let city = 'Boston'
- let city = 'San Diego'
- console.log(food);
- console.log(city);
- 5. What is IIFE Functions?
- 6. What will this print:
- var obj = {
- city: 'Sarajevo',
- getCity:() => {
- console.log(this.city)
- }
- }
- obj.getCity();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement