my code is 'fine' (guessed work but)...my comprehension of what I'm doing leaves a bit to be desired. Specific question, in trying to 'personalize' this exercise and try to alter the output, I'm quite flummoxed and even startled that a specific string statement is being recognized. IOW, why am I putting 'hasOwnProperty' into a string after declaring?? the hasOwnProperty (.hasOwnProperty('hasOwnProperty') function and even more importantly, what am I really establishing or why does it become false if I alter that string verbatim in anyway? To me it seems like .hasOwnProperty is then reduced to its string counterpart??
Apologize about any incoherence this question may have. I guess, asked more broadly, is it normal to feel little dizzy after initially learning OOP? Seems like 1001 somewhat arbitrary (realize thats probably naive perspective from still lack of big picture understanding) variations of logging objects/transferring properties etc...super fun, but also, super head spinny! lol
Replace this line with your code. // what is this "Object.prototype" anyway...? var prototypeType = typeof Object.prototype console.log(prototypeType); // now let's examine it! var hasOwn = Object.prototype.hasOwnProperty('hasOwnProperty'); console.log(hasOwn); var wtf=typeof Object.prototype console.log(wtf); var okayy=Object.prototype.hasOwnProperty('canTellWhatIWrite'); -----TO ME, should yield same output as the redundant example above but comes out false! :0 console.log(okayy);