JavaScript String length syntax

let string = "This is a string";

console.log(string.length);

//Result:
// 16