Mission 33 / 52• Text Objects - Quotes

Delete Inside Quotes

Strings are everywhere. Instead of manually moving inside quotes and backspacing, `di"` empties the string in one stroke.

Delete inside quotes

  • di"delete inside double quotes (leaves empty "")
  • di'delete inside single quotes (leaves empty '')
1
const title = "Welcome to our application!";
2
const query = 'SELECT * FROM users';

Position cursor inside the title string and type `di"`. You are left with `const title = "";`.

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 title = "Welcome to our application!";
2
const query = 'SELECT * FROM users';
NORMAL
00:00