Splitting Text
Break into words.
Welcome to Word Counter! 📝
Hi, word wizard! 👋 We are going to build a Word Counter! 📝
It will count how many words are in a sentence. But first, we need to break a sentence into little word pieces! ✂️
What is a String? 🧵
In code, words and sentences are called strings. 🧵
A string is just text wrapped in quotes, like 'I love coding'. Let's print one! 💬
let sentence = 'I love coding';
console.log(sentence);All lessons in this course
- Splitting Text
- Counting Words
- Counting Letters
- Longest Word