Home / Javascript Tips Generated By ChatGPT / Using String.length to Get String Length in Javascript Find the number of characters in a string. Source Code let text = "Hello world!"; console.log(text.length); // 12