Is 'div' a Parameter or an Argument in JavaScript's document.createElement Method?
In JavaScript's document.createElement('div'), is 'div' a parameter or an argument? While checking https://developer.mozilla.org/en-US/.../createElement, I noticed the section titled "Parameters."
However, upon further research, I found other resources referring to it as "arguments." In the context of function calls in JavaScript, 'div' is an argument. You pass this string to specify the type of element you want to create. It is not considered a parameter when you are calling the createElement method. For instance, in document.createElement('div'), 'div' is the argument you provide to create a <div> element.
Thanks a lot.
-
savidge4 -
Thanks
SignatureSuccess is an ACT not an idea{{ DiscussionBoard.errors[11789904].message }} -
-
aronprins {{ DiscussionBoard.errors[11790123].message }}-
Abdullahcpa -
Thanks
{{ DiscussionBoard.errors[11790956].message }} -
-
-
Meshii Mahi -
Thanks
{{ DiscussionBoard.errors[11796163].message }} -