if no input given in javascript how to set default code code example
Example: if no input given in javascript how to set default code
function(name) {
name = name || 'no name';
}
function(name) {
name = name || 'no name';
}