Слайд 2

[1, 2, 3] + [4, 5, 6] 

[1, 2, 3] + [4, 5, 6]

Слайд 3

[1, 2, 3] + [4, 5, 6] // -> '1,2,34,5,6'

[1, 2, 3] + [4, 5, 6] // -> '1,2,34,5,6'

Слайд 4

console.log(1 <2 <3) 
console.log(3> 2> 1)

console.log(1 console.log(3> 2> 1)

Слайд 5

console.log(1 <2 <3) // -> true
console.log(3> 2> 1) // -> false

console.log(1 true console.log(3> 2> 1) // -> false

Слайд 6

var a = 10; function Foo() {   if (true) {     let a =

var a = 10; function Foo() { if (true) { let a
5;   }   alert(a); } Foo();

Слайд 7

var a = 10; function Foo() {   if (true) {     let a = 5;   }   alert(a); //10 } Foo();

var a = 10; function Foo() { if (true) { let a

Слайд 8

Как очистить массив?

let arr = [1,2,3];

Как очистить массив? let arr = [1,2,3];

Слайд 9

1. arr = [];
2. arr.length = 0;
3. arr.splice(0, arr.length);
4. while(arr.length) {
   arr.pop();
}

1. arr = []; 2. arr.length = 0; 3. arr.splice(0, arr.length); 4. while(arr.length) { arr.pop(); }

Слайд 10

const test1 = 1; if(true){   const test2 = 2; } console.log(test1); console.log(test2); 

const test1 = 1; if(true){ const test2 = 2; } console.log(test1); console.log(test2);
Имя файла: Part-3.pptx
Количество просмотров: 32
Количество скачиваний: 0