Put in order · Angular course · Module 6: Signals

Syntax: update with a function

Arrange, on a single line, the call that increments the count signal by 1 based on its previous value.

Items to put in order

  • v + 1
  • )
  • count.update(
  • =>
  • v

You can check the correct answer by solving this task in the CodeWorlds game.