Mission 34 / 52• Text Objects - Quotes

Delete Around Quotes

`da"` deletes the string characters *and* the opening/closing quote marks.

Delete around quotes

  • da"delete around double quotes (including the quotes)
  • da'delete around single quotes
1
const tags = ["featured", "new", "sale"];

Place cursor on `"new"` and press `da"`. The quotes and contents are deleted.

Now it's your turn!

0 / 4 tasks complete0.0s / 16s par0 / 17 par

Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.

Task 1: Remove 'temporary' and its quotes with da'.

Expected result
const value = ;
Show hint

Use da'.

1
const value = 'temporary';
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next