You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a solution below, the point is I dont use prototype to parse/convert the arguments (such as. Array.prototype.slice.call(arguments)). So I am wondering this way is suitable to the exercise since I am kind of confusing about the phrase in the task which have a property 'quack' defined directly on them
Task:
Write a function duckCount that returns the number of arguments passed to it which have a property 'quack' defined directly on them. Do not match values inherited from prototypes.
Hi all,
I have a solution below, the point is I dont use
prototype
to parse/convert thearguments
(such as.Array.prototype.slice.call(arguments)
). So I am wondering this way is suitable to the exercise since I am kind of confusing about the phrase in the taskwhich have a property 'quack' defined directly on them
My solution
The text was updated successfully, but these errors were encountered: