@@ -0,0 +1,8 @@ | |||
let num = 1601; | |||
if (String(num).includes('.')) { | |||
console.log(String(num).length - 1); | |||
} | |||
else { | |||
console.log(String(num).length); | |||
} |
@@ -0,0 +1,6 @@ | |||
/* let array = [1, 'javascript', true, null, [1, 2, 3], { value: 'javascript' }, function () { console.log('this is inception') }]; | |||
array[array.length - 1](); | |||
console.log(array[array.length - 1]); */ | |||