console.log("hello")
Unicode
console.log("\u0061")
console.log("\uD842\uDFB7")
for (let codePoint of 'foo') {
console.log(codePoint)
}
let text = String.fromCodePoint(0x20BB7)
console.log(text)
𠮷
for (let i = 0; i < text.length; i++) {
console.log(text[i])
}
for (let i of text) {
console.log(i)
}
console.log`hello`
console.log(['hello'])
var array = [1, 3, 5, 7]
console.log(array.indexOf(1));
console.log(array.indexOf(3, 1));
let s = 'hello word'
console.log(s.includes('hello'))
console.log(s.startsWith('h'))
console.log(s.endsWith('d'))
console.log('hello'.repeat(2))
console.log(typeof 42n)
let p = 1n
for (let i = 1n; i <= 70n; i++) {
p *= i
}
console.log(p)
console.log(BigInt(123))