Answer:
Part a: The program will print 3.
Part b: The program will print 4
Part c: The program will print 1.
Explanation:
Part a: As the scoping is static, the x integer has a value of 1 and the y integer has a value of 2 so the addition is 2+1=3.
Part b: As the scoping is dynamic with deep binding, the x integer has a value of 2 and the y integer has a value of 2 so the addition is 2+2=4.
Part c: As the scoping is dynamic with shallow binding, the x integer has a value of 1 so it will print 1.
Answer:
variable when the component is mounted. This triggers the watchers which then triggers an emit i have in the watcher. I do not want the emit to happen when the variable is only being initialized. The variable is from the data section of the vue component.
"Auxiliary memory" , also known as auxiliary storage, secondary storage, secondary memory or external memory :)