Angular - State Management
Given the code:
What will be printed in the console?
const count = signal(0); count.set(5); console.log(count());
What will be printed in the console?
const count = signal(0); count.set(5); console.log(count());
count starts at 0, then set(5) changes its value to 5.count() returns the current value, which is 5 after the update.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions