const speak = function(name = 'luigi', time = 'day') { console.log(`good ${time} ${name}`); } speak(); //good day luigi speak('mario','night'); //good night mario
Last updated 18 days ago