Skip to content

Tech-Front/session2InClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

session2InClass

Question 1

let x = 1;

if (x ===1) {
    let x = 2;
    console.log(x);
}

console.log(x);

Question 2

function test() {
    var x = 1;
    if (true) {
	var x = 2;
    	console.log(x);
    }
    console.log(x);
}
console.log(x);

Arrow functions

syntax : (parameters) => { statements }

Question 3

function add(num) { return (num +1); }

Question 4

Create a dummy list of integers and apply add to all of the list members using map

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •