Get Programming with JavaScript - Listing 4.16
Listing 4.16 - Displaying a menu using a template string
const displayMenu = () => {
console.log(`
Please choose an option:
(1) Print log
(2) Upload file
(9) Quit
` );
};
displayMenu();
const displayMenu = () => {
console.log(`
Please choose an option:
(1) Print log
(2) Upload file
(9) Quit
` );
};
displayMenu();