• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 5
declare variables outside the function: var user, age; function getName() { user= prompt("Enter your name") age= prompt("Enter your age") }
10th Mar 2019, 4:48 PM
Š˜Š³Š¾Ń€ŃŒ Яковенко
Š˜Š³Š¾Ń€ŃŒ Яковенко - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
i don't understand anything
4 Votes
I want to be a web developer but how?
0 Votes
Code to open websites
0 Votes
(Solved) Overflow but only on ARM
1 Votes
Hello, I'm currently at level 15, how can I reach level 16? I don't want to rush, but I aspire to learn more. šŸ¤—šŸ’Æ
0 Votes
AI future - tell me what do you think!
1 Votes
Idk anything in c++
0 Votes
How to add audio in html as we given that code
1 Votes
Is there a mode where you can just code for practice?
0 Votes
How to use this aap properly 🤌 and how to get parfect
0 Votes