This commit is contained in:
codevadym 2025-02-05 08:47:22 +01:00
parent b4202191a1
commit bed50036f1
246 changed files with 31 additions and 13 deletions

0
.DS_Store vendored Normal file → Executable file
View File

0
01-variable-declaration/finish.js Normal file → Executable file
View File

0
01-variable-declaration/solution.js Normal file → Executable file
View File

0
01-variable-declaration/start.js Normal file → Executable file
View File

0
02-value-reassignment/finish.js Normal file → Executable file
View File

0
02-value-reassignment/solution.js Normal file → Executable file
View File

0
02-value-reassignment/start.js Normal file → Executable file
View File

0
03-numbers-multiplication/finish.js Normal file → Executable file
View File

0
03-numbers-multiplication/solution.js Normal file → Executable file
View File

0
03-numbers-multiplication/start.js Normal file → Executable file
View File

0
04-strings-concatenation/finish.js Normal file → Executable file
View File

0
04-strings-concatenation/solution.js Normal file → Executable file
View File

0
04-strings-concatenation/start.js Normal file → Executable file
View File

0
05-comments/finish.js Normal file → Executable file
View File

0
05-comments/solution.js Normal file → Executable file
View File

0
05-comments/start.js Normal file → Executable file
View File

0
06-data-types/finish.js Normal file → Executable file
View File

0
06-data-types/solution.js Normal file → Executable file
View File

0
06-data-types/start.js Normal file → Executable file
View File

0
07-regular-function/finish.js Normal file → Executable file
View File

0
07-regular-function/solution.js Normal file → Executable file
View File

0
07-regular-function/start.js Normal file → Executable file
View File

0
08-function-expression/finish.js Normal file → Executable file
View File

0
08-function-expression/solution.js Normal file → Executable file
View File

0
08-function-expression/start.js Normal file → Executable file
View File

0
09-arrow-function/finish.js Normal file → Executable file
View File

0
09-arrow-function/solution.js Normal file → Executable file
View File

0
09-arrow-function/start.js Normal file → Executable file
View File

0
10-jsdoc/finish.js Normal file → Executable file
View File

0
10-jsdoc/solution.js Normal file → Executable file
View File

0
10-jsdoc/start.js Normal file → Executable file
View File

0
11-callback-function/finish.js Normal file → Executable file
View File

0
11-callback-function/solution.js Normal file → Executable file
View File

0
11-callback-function/start.js Normal file → Executable file
View File

0
12-create-object/finish.js Normal file → Executable file
View File

0
12-create-object/solution.js Normal file → Executable file
View File

0
12-create-object/start.js Normal file → Executable file
View File

0
13-string-length/finish.js Normal file → Executable file
View File

0
13-string-length/solution.js Normal file → Executable file
View File

0
13-string-length/start.js Normal file → Executable file
View File

0
14-uppercase-string/finish.js Normal file → Executable file
View File

0
14-uppercase-string/solution.js Normal file → Executable file
View File

0
14-uppercase-string/start.js Normal file → Executable file
View File

0
15-replace-part-string/finish.js Normal file → Executable file
View File

0
15-replace-part-string/solution.js Normal file → Executable file
View File

0
15-replace-part-string/start.js Normal file → Executable file
View File

0
16-create-array/finish.js Normal file → Executable file
View File

0
16-create-array/solution.js Normal file → Executable file
View File

0
16-create-array/start.js Normal file → Executable file
View File

0
17-replace-element-array/finish.js Normal file → Executable file
View File

0
17-replace-element-array/solution.js Normal file → Executable file
View File

0
17-replace-element-array/start.js Normal file → Executable file
View File

0
18-iterate-over-array/finish.js Normal file → Executable file
View File

0
18-iterate-over-array/solution.js Normal file → Executable file
View File

0
18-iterate-over-array/start.js Normal file → Executable file
View File

0
19-push-to-array/finish.js Normal file → Executable file
View File

0
19-push-to-array/solution.js Normal file → Executable file
View File

0
19-push-to-array/start.js Normal file → Executable file
View File

0
20-date/finish.js Normal file → Executable file
View File

0
20-date/solution.js Normal file → Executable file
View File

0
20-date/start.js Normal file → Executable file
View File

0
21-compare-variables/finish.js Normal file → Executable file
View File

0
21-compare-variables/solution.js Normal file → Executable file
View File

0
21-compare-variables/start.js Normal file → Executable file
View File

0
22-division-remainder/finish.js Normal file → Executable file
View File

0
22-division-remainder/solution.js Normal file → Executable file
View File

0
22-division-remainder/start.js Normal file → Executable file
View File

0
23-or-and-operators/finish.js Normal file → Executable file
View File

0
23-or-and-operators/solution.js Normal file → Executable file
View File

2
23-or-and-operators/start.js Normal file → Executable file
View File

@ -1,6 +1,8 @@
/** ЗАДАЧА 23 - ИЛИ и И операторы
*
* Что будет выведено в консоль?
*
* 3 выведется
*/
console.log(3 || (true && null) || false)

0
24-alternative-binary-operators/.DS_Store vendored Normal file → Executable file
View File

0
24-alternative-binary-operators/finish.js Normal file → Executable file
View File

0
24-alternative-binary-operators/solution.js Normal file → Executable file
View File

8
24-alternative-binary-operators/start.js Normal file → Executable file
View File

@ -5,14 +5,14 @@
let a = 10
a = a + 1
a += + 1
console.log(a) // 11
a = a * 2
a *= 2
console.log(a) // 22
a = a - 5
a -= 5
console.log(a) // 17
a = a / 2
a /= 2
console.log(a) // 8.5

0
25-expression-or-statement/finish.js Normal file → Executable file
View File

0
25-expression-or-statement/solution.js Normal file → Executable file
View File

9
25-expression-or-statement/start.js Normal file → Executable file
View File

@ -7,22 +7,27 @@
*/
15
console.log("выражение")
const myObject = {
x: 10,
y: true,
}
console.log("выражение-инструкция")
myObject.z = 'abc'
console.log("выражение-инструкция")
delete myObject.x
console.log("выражение-инструкция")
let newVariable
console.log("инструкция")
newVariable = 30 + 5
console.log("выражение-инструкция")
console.log(newVariable)
if (newVariable > 10) {
console.log(`${newVariable} больше 10`)
}
console.log("выражение-инструкция")

0
26-what-will-be-logged/finish.js Normal file → Executable file
View File

0
26-what-will-be-logged/solution.js Normal file → Executable file
View File

2
26-what-will-be-logged/start.js Normal file → Executable file
View File

@ -13,3 +13,5 @@ function fn() {
}
fn()(true)
//Привет затем true выведет

0
27-const/finish.js Normal file → Executable file
View File

0
27-const/solution.js Normal file → Executable file
View File

3
27-const/start.js Normal file → Executable file
View File

@ -8,7 +8,7 @@
* Не меняйте строки 13, 18
*/
const arr = [1, 2] // <-- Объявление переменной используя const
var arr = [1, 2] // <-- Объявление переменной используя const
arr.push(3)
@ -18,6 +18,5 @@ console.log(arr)
arr = [1, 2, 3, 4]
// ДО: Uncaught TypeError: Assignment to constant variable.
// ПОСЛЕ: Нет ошибки
console.log(arr)
// [1, 2, 3, 4]

0
28-let/finish.js Normal file → Executable file
View File

0
28-let/solution.js Normal file → Executable file
View File

4
28-let/start.js Normal file → Executable file
View File

@ -3,12 +3,12 @@
* Измените код так, чтобы ошибка исчезла
*/
const myFavoriteAnimal = 'Monkey'
let myFavoriteAnimal = 'Monkey'
console.log(myFavoriteAnimal)
// 'Monkey'
const myFavoriteAnimal = 'Cat'
myFavoriteAnimal = 'Cat'
console.log(myFavoriteAnimal)
// 'Cat'

0
29-strict-mode/finish.js Normal file → Executable file
View File

0
29-strict-mode/solution.js Normal file → Executable file
View File

2
29-strict-mode/start.js Normal file → Executable file
View File

@ -8,7 +8,7 @@
'use strict'
function myFunction() {
a = 2
var a = 2
return a
}

0
30-callback-function/.DS_Store vendored Normal file → Executable file
View File

0
30-callback-function/finish.js Normal file → Executable file
View File

0
30-callback-function/solution.js Normal file → Executable file
View File

0
30-callback-function/start.js Normal file → Executable file
View File

0
31-intervals-timeouts/finish.js Normal file → Executable file
View File

0
31-intervals-timeouts/solution.js Normal file → Executable file
View File

8
31-intervals-timeouts/start.js Normal file → Executable file
View File

@ -12,3 +12,11 @@
* "Сообщение номер 4"
* "Сообщение номер 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
View File

0
32-add-start-of-the-array/solution.js Normal file → Executable file
View File

4
32-add-start-of-the-array/start.js Normal file → Executable file
View File

@ -8,7 +8,7 @@
*/
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
View File

Some files were not shown because too many files have changed in this diff Show More