Добавил решения

This commit is contained in:
codevadym 2025-01-18 23:00:24 +01:00
parent ec1e76233e
commit 259c013d78
6 changed files with 35 additions and 0 deletions

View File

@ -4,3 +4,6 @@
*
* 2. Используйте стрелочную функцию
*/
setTimeout(() => {
console.log("Привет, мир!");
}, 5000);

View File

@ -8,3 +8,11 @@
* 2. Выведите в консоль строку
* "My name is <name> <surname> and my favorite number is <favoriteNumber>"
*/
const obj = {
name: 'Vadim',
surname: 'Fedosenko',
favoriteNumber: '32'
}
console.log("My name is " + obj.name + " " + obj.surname + " " + "and my favorite number is" + " " + obj.favoriteNumber)

View File

@ -4,3 +4,7 @@
*
* 2. Виведите в консоль длину этой строки
*/
var name = "Vadim";
console.log(name.length);

View File

@ -12,3 +12,13 @@
*
* 5. Выведите в консоль значение второй переменной
*/
var string = "TestString"
console.log(string instanceof String)
console.log(typeof string)
var stringUp = string.toUpperCase()
console.log(stringUp)

View File

@ -6,3 +6,7 @@
*
* 3. Выведите значение второй переменной в консоль
*/
var say = 'Good Morning'
console.log(say.replace('Morning', 'Evening'))

View File

@ -6,3 +6,9 @@
*
* 3. Выведите в консоль длину массива
*/
var massive = [1111, 'test', true]
console.log(massive[0])
console.log(massive.length)