Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Day's Work on JSHunt #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

junninho
Copy link

@junninho junninho commented Oct 7, 2015

No description provided.

var age3 = prompt("How old are you?");
var name3 = prompt("What is your name?");

alert(name1 + "-" + age1 + "\n" + name2 + "-" + age2 + "\n" + name3 + "-" + age3);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of the newline character! Can you think of a way we can do this without writing prompt more than twice? (hint: loops)

@Peleg
Copy link
Member

Peleg commented Oct 9, 2015

Great work @jujut1998! Keep it coming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants