default value of functin atribute
function say(message='Hi', number=7) {
console.log(message);
console.log(number);
}
say();
// 'Hi'
// 7
Also in JavaScript:
- get today's date javascript
- create react element with string
- rounding number to x decimals javascript
- make indexOF in js
- javascript founder
- Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
- jquery use variable in string "without" concatenate
- javascript check if empty
- left_field in jsgrid
- js reverse
- file origin does not match viewer's pdf.js
- currying vs closure javascript
- how to change style of an element using javascript
- javascript ascending and descending
- Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
- js add week to date
- moment duratuion from hours
- check equality numbers javascript
- delay in javascript
- how to import jquery in js file
- jquery copier dans le presse papier
- node js find directory change directory
- vue dynamic create watch
- printf statement in javascript