Question: What code would we use to access, or call, the scribble method for the pencil object? var pencil = { color: yelllow, scribble: function() {
What code would we use to access, or call, the scribble method for the pencil object? var pencil = { color: "yelllow", scribble: function() { console.log("~~~"); } }; a. scribble (); b. pencil.scribble; c. pencil(scribble); d.pencil.scribble();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
