← Back to Question List
JavaScript Code Walkthrough #19
String Length and Indexing
📄 Code
Read carefully — what does this print?1let word = "hello";2console.log(word.length);3console.log(word.charAt(0));4console.log(word[word.length - 1]);