Answer to Question #229774 in HTML/JavaScript Web Application for Kam

Question #229774

Write a program that requests the user’s language and then prints a greeting in that language. You must include at least five different languages.


1
Expert's answer
2021-08-25T23:56:17-0400
var stringArray = ["Bonjour", "Hola", "Salve", "Guten Tag", "God dag"];
var language =parseInt(prompt("1. French\n2. Spanish\n3. Italian\n4. German\n5. Swedish"));
alert(stringArray[language-1]);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS