CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #19

String Length and Indexing

easyStrings

📄 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]);

🎯 Your Answer