diff --git a/11-callback-function/start.js b/11-callback-function/start.js index cf64af1..e2d72f7 100644 --- a/11-callback-function/start.js +++ b/11-callback-function/start.js @@ -4,3 +4,6 @@ * * 2. Используйте стрелочную функцию */ +setTimeout(() => { + console.log("Привет, мир!"); + }, 5000); \ No newline at end of file diff --git a/12-create-object/start.js b/12-create-object/start.js index 12b1a17..284696b 100644 --- a/12-create-object/start.js +++ b/12-create-object/start.js @@ -8,3 +8,11 @@ * 2. Выведите в консоль строку * "My name is and my favorite number is " */ + +const obj = { + name: 'Vadim', + surname: 'Fedosenko', + favoriteNumber: '32' +} + +console.log("My name is " + obj.name + " " + obj.surname + " " + "and my favorite number is" + " " + obj.favoriteNumber) \ No newline at end of file diff --git a/13-string-length/start.js b/13-string-length/start.js index 0aa9cf6..ebf9ccd 100644 --- a/13-string-length/start.js +++ b/13-string-length/start.js @@ -4,3 +4,7 @@ * * 2. Виведите в консоль длину этой строки */ + + +var name = "Vadim"; +console.log(name.length); \ No newline at end of file diff --git a/14-uppercase-string/start.js b/14-uppercase-string/start.js index 210b64f..df39d88 100644 --- a/14-uppercase-string/start.js +++ b/14-uppercase-string/start.js @@ -12,3 +12,13 @@ * * 5. Выведите в консоль значение второй переменной */ + +var string = "TestString" + +console.log(string instanceof String) + +console.log(typeof string) + +var stringUp = string.toUpperCase() + +console.log(stringUp) \ No newline at end of file diff --git a/15-replace-part-string/start.js b/15-replace-part-string/start.js index 5d7827c..3f66994 100644 --- a/15-replace-part-string/start.js +++ b/15-replace-part-string/start.js @@ -6,3 +6,7 @@ * * 3. Выведите значение второй переменной в консоль */ + +var say = 'Good Morning' + +console.log(say.replace('Morning', 'Evening')) \ No newline at end of file diff --git a/16-create-array/start.js b/16-create-array/start.js index d0dca6a..ec95c7d 100644 --- a/16-create-array/start.js +++ b/16-create-array/start.js @@ -6,3 +6,9 @@ * * 3. Выведите в консоль длину массива */ + + +var massive = [1111, 'test', true] + +console.log(massive[0]) +console.log(massive.length) \ No newline at end of file