Search posts, tags, users, and pages
Rahul
hustling
From MDN docs a parameter is a named variable passed into a function. Parameter variables are used to import arguments into functions. In this brief post, we'll see about using default parameter and parameter validation in JavaScript. Parameter Vali...
Usman Sabuwala
Learning web development, running a YouTube channel
Cool! But mostly I use TypeScript which errors out in the IDE if we don't pass in a parameter.
Tip: To use that in JS, just add // @ts-check at the top of your file.
// @ts-check
Usman Sabuwala
Learning web development, running a YouTube channel
Cool! But mostly I use TypeScript which errors out in the IDE if we don't pass in a parameter.
Tip: To use that in JS, just add
// @ts-checkat the top of your file.