I want to add a comma in the alert()
command like console command. But it does not work.
alert(`what you input is ${m}`, typeof m);
console.log(`what you input is ${m}`, typeof m);
I want to add a comma in the alert()
command like console command. But it does not work.
alert(`what you input is ${m}`, typeof m);
console.log(`what you input is ${m}`, typeof m);
alert
takes only one argument
const m = 3
alert(`what you input is ${m}, ${typeof m}`);