JavaScript by Radu TM • June 21, 2022
// Declare and assign a string variable
const string = "🍕🍔🍟";
// Get the length of the string
const length = string.length;
// Output the length to the console
console.log(length);
0
18.963
JavaScript by Radu TM • June 21, 2022
let str = '💩💩💩';
// Get the length of the string
let len = str.length;
// Log the length of the string
console.log(len); // 3
0
18.963