Is spoil() private and cook() public?
this.cooked = false;
var spoiled = false;
this.cook = cook;
cooked = true;
spoiled = true;
If so then are the variables treated the same?
I am coming from a C++ background just trying to translate things over to where I'm comfortable. I'm so used to using classes I feel weird trying to program without them.
Any additional information pertaining to methods and objects that I didn't directly ask for is more than welcome.
Thank you for your time,