Mission 41 / 52• Text Objects - Words

Words Review

Words are the atomic building blocks of coding. Mastering `diw`, `daw`, and `ciw` saves hours every week.

Word text objects summary

  • diwdelete word only
  • dawdelete word + whitespace
  • ciwchange entire word
1
const previousScore = 15;
2
const currentScore = previousScore + 5;

Use `ciw` to rename `previousScore` in both places.

Now it's your turn!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const previousScore = 15;
2
const currentScore = previousScore + 5;
NORMAL
00:00