Mission 36 / 52• Text Objects - Quotes

Change Around Quotes

`ca"` deletes the quotes and content, letting you replace a hardcoded string with a variable or function call.

Change around quotes

  • ca"change around double quotes and enter insert mode
  • ca'change around single quotes and enter insert mode
1
const message = "placeholder text";

Type `ca"` and type `getMessage()`.

Now it's your turn!

0 / 4 tasks complete0.0s / 27s par0 / 46 par

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

Task 1: Replace quoted argument with userId using ca". Return to normal mode.

Expected result
render(userId);
Show hint

Use ca", type userId, then Escape.

1
render("placeholder");
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next