Ułóż w kolejności · Kurs Angular · Moduł 6: Signals

Łańcuch computed signals

Uporządkuj definicje computed signals tak, aby każdy korzystał z poprzedniego (subtotal → tax → total).

Elementy do ułożenia

  • const subtotal = computed(() => price() * quantity());
  • const total = computed(() => subtotal() + tax());
  • const tax = computed(() => subtotal() * taxRate());

Poprawną odpowiedź sprawdzisz, rozwiązując to zadanie w grze CodeWorlds.