Ad
Code
Diff
  • function main(greeting, language) {
      output = `${greeting}, ${language}!`;
      console.log(output);
      return output;
    }
    • function main(){
    • var greeting = "Hello";
    • var language = "JS";
    • console.log(`${greeting}, ${language}!`);
    • function main(greeting, language) {
    • output = `${greeting}, ${language}!`;
    • console.log(output);
    • return output;
    • }