lasta
This commit is contained in:
parent
b4202191a1
commit
bed50036f1
0
01-variable-declaration/finish.js
Normal file → Executable file
0
01-variable-declaration/finish.js
Normal file → Executable file
0
01-variable-declaration/solution.js
Normal file → Executable file
0
01-variable-declaration/solution.js
Normal file → Executable file
0
01-variable-declaration/start.js
Normal file → Executable file
0
01-variable-declaration/start.js
Normal file → Executable file
0
02-value-reassignment/finish.js
Normal file → Executable file
0
02-value-reassignment/finish.js
Normal file → Executable file
0
02-value-reassignment/solution.js
Normal file → Executable file
0
02-value-reassignment/solution.js
Normal file → Executable file
0
02-value-reassignment/start.js
Normal file → Executable file
0
02-value-reassignment/start.js
Normal file → Executable file
0
03-numbers-multiplication/finish.js
Normal file → Executable file
0
03-numbers-multiplication/finish.js
Normal file → Executable file
0
03-numbers-multiplication/solution.js
Normal file → Executable file
0
03-numbers-multiplication/solution.js
Normal file → Executable file
0
03-numbers-multiplication/start.js
Normal file → Executable file
0
03-numbers-multiplication/start.js
Normal file → Executable file
0
04-strings-concatenation/finish.js
Normal file → Executable file
0
04-strings-concatenation/finish.js
Normal file → Executable file
0
04-strings-concatenation/solution.js
Normal file → Executable file
0
04-strings-concatenation/solution.js
Normal file → Executable file
0
04-strings-concatenation/start.js
Normal file → Executable file
0
04-strings-concatenation/start.js
Normal file → Executable file
0
05-comments/finish.js
Normal file → Executable file
0
05-comments/finish.js
Normal file → Executable file
0
05-comments/solution.js
Normal file → Executable file
0
05-comments/solution.js
Normal file → Executable file
0
05-comments/start.js
Normal file → Executable file
0
05-comments/start.js
Normal file → Executable file
0
06-data-types/finish.js
Normal file → Executable file
0
06-data-types/finish.js
Normal file → Executable file
0
06-data-types/solution.js
Normal file → Executable file
0
06-data-types/solution.js
Normal file → Executable file
0
06-data-types/start.js
Normal file → Executable file
0
06-data-types/start.js
Normal file → Executable file
0
07-regular-function/finish.js
Normal file → Executable file
0
07-regular-function/finish.js
Normal file → Executable file
0
07-regular-function/solution.js
Normal file → Executable file
0
07-regular-function/solution.js
Normal file → Executable file
0
07-regular-function/start.js
Normal file → Executable file
0
07-regular-function/start.js
Normal file → Executable file
0
08-function-expression/finish.js
Normal file → Executable file
0
08-function-expression/finish.js
Normal file → Executable file
0
08-function-expression/solution.js
Normal file → Executable file
0
08-function-expression/solution.js
Normal file → Executable file
0
08-function-expression/start.js
Normal file → Executable file
0
08-function-expression/start.js
Normal file → Executable file
0
09-arrow-function/finish.js
Normal file → Executable file
0
09-arrow-function/finish.js
Normal file → Executable file
0
09-arrow-function/solution.js
Normal file → Executable file
0
09-arrow-function/solution.js
Normal file → Executable file
0
09-arrow-function/start.js
Normal file → Executable file
0
09-arrow-function/start.js
Normal file → Executable file
0
10-jsdoc/finish.js
Normal file → Executable file
0
10-jsdoc/finish.js
Normal file → Executable file
0
10-jsdoc/solution.js
Normal file → Executable file
0
10-jsdoc/solution.js
Normal file → Executable file
0
10-jsdoc/start.js
Normal file → Executable file
0
10-jsdoc/start.js
Normal file → Executable file
0
11-callback-function/finish.js
Normal file → Executable file
0
11-callback-function/finish.js
Normal file → Executable file
0
11-callback-function/solution.js
Normal file → Executable file
0
11-callback-function/solution.js
Normal file → Executable file
0
11-callback-function/start.js
Normal file → Executable file
0
11-callback-function/start.js
Normal file → Executable file
0
12-create-object/finish.js
Normal file → Executable file
0
12-create-object/finish.js
Normal file → Executable file
0
12-create-object/solution.js
Normal file → Executable file
0
12-create-object/solution.js
Normal file → Executable file
0
12-create-object/start.js
Normal file → Executable file
0
12-create-object/start.js
Normal file → Executable file
0
13-string-length/finish.js
Normal file → Executable file
0
13-string-length/finish.js
Normal file → Executable file
0
13-string-length/solution.js
Normal file → Executable file
0
13-string-length/solution.js
Normal file → Executable file
0
13-string-length/start.js
Normal file → Executable file
0
13-string-length/start.js
Normal file → Executable file
0
14-uppercase-string/finish.js
Normal file → Executable file
0
14-uppercase-string/finish.js
Normal file → Executable file
0
14-uppercase-string/solution.js
Normal file → Executable file
0
14-uppercase-string/solution.js
Normal file → Executable file
0
14-uppercase-string/start.js
Normal file → Executable file
0
14-uppercase-string/start.js
Normal file → Executable file
0
15-replace-part-string/finish.js
Normal file → Executable file
0
15-replace-part-string/finish.js
Normal file → Executable file
0
15-replace-part-string/solution.js
Normal file → Executable file
0
15-replace-part-string/solution.js
Normal file → Executable file
0
15-replace-part-string/start.js
Normal file → Executable file
0
15-replace-part-string/start.js
Normal file → Executable file
0
16-create-array/finish.js
Normal file → Executable file
0
16-create-array/finish.js
Normal file → Executable file
0
16-create-array/solution.js
Normal file → Executable file
0
16-create-array/solution.js
Normal file → Executable file
0
16-create-array/start.js
Normal file → Executable file
0
16-create-array/start.js
Normal file → Executable file
0
17-replace-element-array/finish.js
Normal file → Executable file
0
17-replace-element-array/finish.js
Normal file → Executable file
0
17-replace-element-array/solution.js
Normal file → Executable file
0
17-replace-element-array/solution.js
Normal file → Executable file
0
17-replace-element-array/start.js
Normal file → Executable file
0
17-replace-element-array/start.js
Normal file → Executable file
0
18-iterate-over-array/finish.js
Normal file → Executable file
0
18-iterate-over-array/finish.js
Normal file → Executable file
0
18-iterate-over-array/solution.js
Normal file → Executable file
0
18-iterate-over-array/solution.js
Normal file → Executable file
0
18-iterate-over-array/start.js
Normal file → Executable file
0
18-iterate-over-array/start.js
Normal file → Executable file
0
19-push-to-array/finish.js
Normal file → Executable file
0
19-push-to-array/finish.js
Normal file → Executable file
0
19-push-to-array/solution.js
Normal file → Executable file
0
19-push-to-array/solution.js
Normal file → Executable file
0
19-push-to-array/start.js
Normal file → Executable file
0
19-push-to-array/start.js
Normal file → Executable file
0
20-date/finish.js
Normal file → Executable file
0
20-date/finish.js
Normal file → Executable file
0
20-date/solution.js
Normal file → Executable file
0
20-date/solution.js
Normal file → Executable file
0
20-date/start.js
Normal file → Executable file
0
20-date/start.js
Normal file → Executable file
0
21-compare-variables/finish.js
Normal file → Executable file
0
21-compare-variables/finish.js
Normal file → Executable file
0
21-compare-variables/solution.js
Normal file → Executable file
0
21-compare-variables/solution.js
Normal file → Executable file
0
21-compare-variables/start.js
Normal file → Executable file
0
21-compare-variables/start.js
Normal file → Executable file
0
22-division-remainder/finish.js
Normal file → Executable file
0
22-division-remainder/finish.js
Normal file → Executable file
0
22-division-remainder/solution.js
Normal file → Executable file
0
22-division-remainder/solution.js
Normal file → Executable file
0
22-division-remainder/start.js
Normal file → Executable file
0
22-division-remainder/start.js
Normal file → Executable file
0
23-or-and-operators/finish.js
Normal file → Executable file
0
23-or-and-operators/finish.js
Normal file → Executable file
0
23-or-and-operators/solution.js
Normal file → Executable file
0
23-or-and-operators/solution.js
Normal file → Executable file
2
23-or-and-operators/start.js
Normal file → Executable file
2
23-or-and-operators/start.js
Normal file → Executable file
@ -1,6 +1,8 @@
|
|||||||
/** ЗАДАЧА 23 - ИЛИ и И операторы
|
/** ЗАДАЧА 23 - ИЛИ и И операторы
|
||||||
*
|
*
|
||||||
* Что будет выведено в консоль?
|
* Что будет выведено в консоль?
|
||||||
|
*
|
||||||
|
* 3 выведется
|
||||||
*/
|
*/
|
||||||
|
|
||||||
console.log(3 || (true && null) || false)
|
console.log(3 || (true && null) || false)
|
||||||
|
|||||||
0
24-alternative-binary-operators/.DS_Store
vendored
Normal file → Executable file
0
24-alternative-binary-operators/.DS_Store
vendored
Normal file → Executable file
0
24-alternative-binary-operators/finish.js
Normal file → Executable file
0
24-alternative-binary-operators/finish.js
Normal file → Executable file
0
24-alternative-binary-operators/solution.js
Normal file → Executable file
0
24-alternative-binary-operators/solution.js
Normal file → Executable file
8
24-alternative-binary-operators/start.js
Normal file → Executable file
8
24-alternative-binary-operators/start.js
Normal file → Executable file
@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
let a = 10
|
let a = 10
|
||||||
|
|
||||||
a = a + 1
|
a += + 1
|
||||||
console.log(a) // 11
|
console.log(a) // 11
|
||||||
|
|
||||||
a = a * 2
|
a *= 2
|
||||||
console.log(a) // 22
|
console.log(a) // 22
|
||||||
|
|
||||||
a = a - 5
|
a -= 5
|
||||||
console.log(a) // 17
|
console.log(a) // 17
|
||||||
|
|
||||||
a = a / 2
|
a /= 2
|
||||||
console.log(a) // 8.5
|
console.log(a) // 8.5
|
||||||
|
|||||||
0
25-expression-or-statement/finish.js
Normal file → Executable file
0
25-expression-or-statement/finish.js
Normal file → Executable file
0
25-expression-or-statement/solution.js
Normal file → Executable file
0
25-expression-or-statement/solution.js
Normal file → Executable file
9
25-expression-or-statement/start.js
Normal file → Executable file
9
25-expression-or-statement/start.js
Normal file → Executable file
@ -7,22 +7,27 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
15
|
15
|
||||||
|
console.log("выражение")
|
||||||
|
|
||||||
const myObject = {
|
const myObject = {
|
||||||
x: 10,
|
x: 10,
|
||||||
y: true,
|
y: true,
|
||||||
}
|
}
|
||||||
|
console.log("выражение-инструкция")
|
||||||
myObject.z = 'abc'
|
myObject.z = 'abc'
|
||||||
|
console.log("выражение-инструкция")
|
||||||
|
|
||||||
delete myObject.x
|
delete myObject.x
|
||||||
|
console.log("выражение-инструкция")
|
||||||
|
|
||||||
let newVariable
|
let newVariable
|
||||||
|
console.log("инструкция")
|
||||||
newVariable = 30 + 5
|
newVariable = 30 + 5
|
||||||
|
console.log("выражение-инструкция")
|
||||||
|
|
||||||
console.log(newVariable)
|
console.log(newVariable)
|
||||||
|
|
||||||
if (newVariable > 10) {
|
if (newVariable > 10) {
|
||||||
console.log(`${newVariable} больше 10`)
|
console.log(`${newVariable} больше 10`)
|
||||||
}
|
}
|
||||||
|
console.log("выражение-инструкция")
|
||||||
0
26-what-will-be-logged/finish.js
Normal file → Executable file
0
26-what-will-be-logged/finish.js
Normal file → Executable file
0
26-what-will-be-logged/solution.js
Normal file → Executable file
0
26-what-will-be-logged/solution.js
Normal file → Executable file
2
26-what-will-be-logged/start.js
Normal file → Executable file
2
26-what-will-be-logged/start.js
Normal file → Executable file
@ -13,3 +13,5 @@ function fn() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn()(true)
|
fn()(true)
|
||||||
|
|
||||||
|
//Привет затем true выведет
|
||||||
0
27-const/finish.js
Normal file → Executable file
0
27-const/finish.js
Normal file → Executable file
0
27-const/solution.js
Normal file → Executable file
0
27-const/solution.js
Normal file → Executable file
3
27-const/start.js
Normal file → Executable file
3
27-const/start.js
Normal file → Executable file
@ -8,7 +8,7 @@
|
|||||||
* Не меняйте строки 13, 18
|
* Не меняйте строки 13, 18
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const arr = [1, 2] // <-- Объявление переменной используя const
|
var arr = [1, 2] // <-- Объявление переменной используя const
|
||||||
|
|
||||||
arr.push(3)
|
arr.push(3)
|
||||||
|
|
||||||
@ -18,6 +18,5 @@ console.log(arr)
|
|||||||
arr = [1, 2, 3, 4]
|
arr = [1, 2, 3, 4]
|
||||||
// ДО: Uncaught TypeError: Assignment to constant variable.
|
// ДО: Uncaught TypeError: Assignment to constant variable.
|
||||||
// ПОСЛЕ: Нет ошибки
|
// ПОСЛЕ: Нет ошибки
|
||||||
|
|
||||||
console.log(arr)
|
console.log(arr)
|
||||||
// [1, 2, 3, 4]
|
// [1, 2, 3, 4]
|
||||||
|
|||||||
0
28-let/finish.js
Normal file → Executable file
0
28-let/finish.js
Normal file → Executable file
0
28-let/solution.js
Normal file → Executable file
0
28-let/solution.js
Normal file → Executable file
4
28-let/start.js
Normal file → Executable file
4
28-let/start.js
Normal file → Executable file
@ -3,12 +3,12 @@
|
|||||||
* Измените код так, чтобы ошибка исчезла
|
* Измените код так, чтобы ошибка исчезла
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const myFavoriteAnimal = 'Monkey'
|
let myFavoriteAnimal = 'Monkey'
|
||||||
|
|
||||||
console.log(myFavoriteAnimal)
|
console.log(myFavoriteAnimal)
|
||||||
// 'Monkey'
|
// 'Monkey'
|
||||||
|
|
||||||
const myFavoriteAnimal = 'Cat'
|
myFavoriteAnimal = 'Cat'
|
||||||
|
|
||||||
console.log(myFavoriteAnimal)
|
console.log(myFavoriteAnimal)
|
||||||
// 'Cat'
|
// 'Cat'
|
||||||
|
|||||||
0
29-strict-mode/finish.js
Normal file → Executable file
0
29-strict-mode/finish.js
Normal file → Executable file
0
29-strict-mode/solution.js
Normal file → Executable file
0
29-strict-mode/solution.js
Normal file → Executable file
2
29-strict-mode/start.js
Normal file → Executable file
2
29-strict-mode/start.js
Normal file → Executable file
@ -8,7 +8,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
function myFunction() {
|
function myFunction() {
|
||||||
a = 2
|
var a = 2
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
30-callback-function/.DS_Store
vendored
Normal file → Executable file
0
30-callback-function/.DS_Store
vendored
Normal file → Executable file
0
30-callback-function/finish.js
Normal file → Executable file
0
30-callback-function/finish.js
Normal file → Executable file
0
30-callback-function/solution.js
Normal file → Executable file
0
30-callback-function/solution.js
Normal file → Executable file
0
30-callback-function/start.js
Normal file → Executable file
0
30-callback-function/start.js
Normal file → Executable file
0
31-intervals-timeouts/finish.js
Normal file → Executable file
0
31-intervals-timeouts/finish.js
Normal file → Executable file
0
31-intervals-timeouts/solution.js
Normal file → Executable file
0
31-intervals-timeouts/solution.js
Normal file → Executable file
8
31-intervals-timeouts/start.js
Normal file → Executable file
8
31-intervals-timeouts/start.js
Normal file → Executable file
@ -12,3 +12,11 @@
|
|||||||
* "Сообщение номер 4"
|
* "Сообщение номер 4"
|
||||||
* "Сообщение номер 5"
|
* "Сообщение номер 5"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
function show() {
|
||||||
|
for (var i = 0; i <= 5; i++) {
|
||||||
|
console.log("Сообщение номер " + i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(show, 2000)
|
||||||
0
32-add-start-of-the-array/finish.js
Normal file → Executable file
0
32-add-start-of-the-array/finish.js
Normal file → Executable file
0
32-add-start-of-the-array/solution.js
Normal file → Executable file
0
32-add-start-of-the-array/solution.js
Normal file → Executable file
4
32-add-start-of-the-array/start.js
Normal file → Executable file
4
32-add-start-of-the-array/start.js
Normal file → Executable file
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const myArray = [true, null]
|
const myArray = [true, null]
|
||||||
|
myArray.unshift(100, "Привет")
|
||||||
// Напишите код здесь
|
// Напишите код здесь
|
||||||
|
|
||||||
console.log(myArray) // [100, "Hello", true, null]
|
console.log(myArray.length) // [100, "Hello", true, null]
|
||||||
|
|||||||
0
33-add-at-index-array/finish.js
Normal file → Executable file
0
33-add-at-index-array/finish.js
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user