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

introduce prompt() function #23

Merged
1 commit merged into from
May 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions problems/using_npm_packages/problem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ just like you would do in node.js!
`require('uniq')` returns a `uniq(xs)` function that removes duplicate
items from an array input `xs`.

You will also need `prompt()`, a built in function available to browsers that
asks the user to enter some text, and returns a string.

For this level, use `prompt()` to fetch a string. Split the string that
`prompt()` returns by commas (`str.split(',')` returns a separated array of
strings) and run this array through `uniq()` to discard repeated items.
Expand Down