Ad
Code
Diff
  • function main(greeting='Hello', object='World') {
      let output = `${greeting}, ${object}!`;
      
      console.log(output);
      return output;
    }
    • function main(greeting, language) {
    • output = `${greeting}, ${language}!`;
    • function main(greeting='Hello', object='World') {
    • let output = `${greeting}, ${object}!`;
    • console.log(output);
    • return output;
    • }