Answers for "Style Guide: Function parameters"

0

Style Guide: Function parameters

// Style Guide: Function parameters
// Never name the arguments parameter else it will
// take the precedence over your arguments:


// bad
function nope(name, options, arguments) {
  // ...stuff...
}

// good
function yup(name, options, args) {
  // ...stuff...
}
Posted by: Guest on June-09-2021

Code answers related to "Style Guide: Function parameters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language