https://github.com/glowiep/numberguesser
JavaScript Number guesser
https://github.com/glowiep/numberguesser
javascript personal-project
Last synced: about 1 month ago
JSON representation
JavaScript Number guesser
- Host: GitHub
- URL: https://github.com/glowiep/numberguesser
- Owner: glowiep
- Created: 2023-09-17T22:05:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-27T02:04:23.000Z (over 1 year ago)
- Last Synced: 2025-02-11T12:30:38.409Z (3 months ago)
- Topics: javascript, personal-project
- Language: CSS
- Homepage: https://glowiep.github.io/numberguesser/
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# numberguesser
JavaScript Number guesser
This was inspired by the LightHouse Labs Kata (stretch) assignment to create a number guessing game in JavaScript from scratch.
The npm prompt-sync package had to be used so that the 'guess' input by the user can be read directly from the command line in node.
(Check out the code for it here)Upon completing the assignment I tinkered around so that the number guessing game works in a browser.
A few learnings along the way:
-
I decided against linking the JavaScript code that uses the npm package "prompt-sync" to my HTML code.
-
The "prompt-sync" module is primarily intended for use in Node.js environments, to use it in a web browser, another tool to bundle the code may need to be used to make it compatible with the browser environment.
Check out my number guesser in the browser.
Sources:
[1] CodePen by Luke Reid
[2] CodePen by Simon Prickett