function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
let name = 'Harry';
let occupation = 'wizard';
console.log(`Hi! My name is ${name}. I'm a ${occupation}.`);
[...[...'...']].length
typeof (new (class F extends (String, Array) { })).substring
const PI = 3.14;
console.log(PI) //Imprime 3.14
let some_text = "some string";
if(some_text.indexOf('str') !=-1){
return true;
}
let a = 12, b = 3;
[a, b] = [b, a];