let x = 1;
if (x ===1) {
let x = 2;
console.log(x);
}
console.log(x);
function test() {
var x = 1;
if (true) {
var x = 2;
console.log(x);
}
console.log(x);
}
console.log(x);
syntax : (parameters) => { statements }
function add(num) { return (num +1); }
Create a dummy list of integers and apply add to all of the list members using map