jsdoc optional param
/**
* @param {string=} somebody - Somebody's name.
*/
function sayHello(somebody) {
if (!somebody) {
somebody = 'John Doe';
}
alert('Hello ' + somebody);
}
Also in JavaScript:
- javascript minute and second to convert seconds
- react redirect to url
- jquery chek radio
- how to create scroll to top button in reactjs example code
- how to do basic authentication with fetch api
- string json to object c#
- how to refrence image in dart angular
- angular interview questions
- js extract image from mp4
- location javascript redirect
- connect nodejs to mariadb
- json beautify
- package.json tilde vs caret
- ngx-translate angular 11
- JavaScript banner
- setting property to method in child class javascript
- vue js on checkbox show div
- json.stringify stack overflow
- remove a value to an array of javascript
- jquery cancel ajax request on click
- checkbox is checked jquery
- javascript have special characters
- react 17 hot reload not working
- check member role discordjs 12