Consider the following code snippet : var c = counter(), d = counter(); c.count() d.count() c.reset() c.count() d.count() The state stored in d is :
Consider the following code snippet : var c = counter(), d = counter(); c.count() d.count() c.reset() c.count() d.count() The state stored in d is : Correct Answer 1
Answer: Option 1
The state stored in d is 1 because d was not reset.
মোঃ আরিফুল ইসলাম
Feb 20, 2025