Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what happens if pass argument to a function that does not have parameters javascript

//Nothing will happen- meaning you won't get an error or a warning as passing the parameters in javascript is optional. All the parameters that weren't "supplied" will have the undefined value.
 
PREVIOUS NEXT
Tagged: #pass #argument #function #parameters #javascript
ADD COMMENT
Topic
Name
8+7 =