// var let const
// let name = "Илья";
// let soname = 'Фамилия'
// name = "Евгений"
// console.log(name + " " + soname)
// var test = "test"
// var test = "test 1"
// let testLet = "test let"
// let testLet_1 = "test let 1"
// const testConst = []
// testConst[0] = "World"
// console.log(testConst)
// let userAge = 40
// let возрастПользователя = 50
// console.log(возрастПользователя)
// let test = "Hello";
// console.log(test)
// test = 50
// console.log(test)
// test = true
// console.log(test)
// String "" '' ``
// let string = "Hello"
// console.log(string)
// // Number 12
// let num = 100
// console.log(num)
// // BigInt
// // const bigInt = 1234567890123456789012345678901234567890n;
// // console.log(bigInt)
// // Boolean true false 1 0
// let bool = false
// console.log(bool)
// // undefined
// let unde
// console.log(unde)
// let testNull = null
// console.log(testNull)
// // Symbol
// let testSymbol = Symbol("Hello")
// console.log(testSymbol)
// // Object {}
// const obj = {a: 100, b: 1000 }
// obj.b = 999
// console.log(obj)
// // Операторы
// // + - / * = ** %
// // == === > < >= <= != !==
// // || && !
// console.log(60, "5" == 5)
// console.log(61, "5" === 5)
// let age = 100
// if(age >= 18 && age < 100){
// console.log("Доступ открыт")
// }else{
// console.log("Доступ закрыт")
// }
// let a = "100"
// let b = 8
// console.log(a + b * b)
// // typeof
// console.log(typeof "Hello")
// console.log(typeof 56546)
// console.log(typeof {})
// const testObj1 = {}
// const testObj2 = {}
// console.log(testObj1 == testObj2)
Click Run to execute JavaScript.
Code runs in an isolated environment.
Code runs in an isolated environment.