Mission 32 / 52• Text Objects - Bracket Pairs

Brackets Review

Brackets, braces, and parentheses define virtually every modern programming syntax.

Bracket text objects review

  • di{ / da{delete inside / around curly braces
  • ci{ / ca{change inside / around curly braces
  • ci( / di(change / delete inside parentheses
1
function updateUser(id, payload) {
2
const sanitized = sanitize(payload);
3
return db.save(sanitized);
4
}

Practice changing arguments with `ci(` and replacing function bodies with `ci{`.

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
function updateUser(id, payload) {
2
const sanitized = sanitize(payload);
3
return db.save(sanitized);
4
}
NORMAL
00:00