Complete the code to create a signal with initial value 0.
const count = [1](0);
In Angular signals, signal() creates a reactive state primitive.
Complete the code to read the current value of the signal.
const currentValue = count[1];.value property which signals do not have.get() which is not part of Angular signalsTo get the current value of a signal, call it as a function: count().
Fix the error in updating the signal value.
count[1](count() + 1);
count() = ....value = which is invalidTo update a signal, use the .set(newValue) method.
Fill both blanks to create a computed signal that doubles the count.
const doubleCount = computed(() => count[1] * [2]);
.value instead of ()count itself instead of a numberComputed signals read source signals by calling them count() and multiply by 2.
Fill all three blanks to create a signal, update it, and create a computed signal that adds 10.
const score = [1](5); score[2](score() + 3); const bonusScore = computed(() => score() [3] 10);
.value = instead of .set() to update- instead of + in computedsignal()Create signal with signal(5), update with .set(score() + 3), compute score() + 10.
