https://github.com/jasheloper/silly-story-generator
To test comprehension of JavaScript fundamentals, such as variables, numbers, operators, strings, and arrays.
https://github.com/jasheloper/silly-story-generator
javascript mdn
Last synced: 3 months ago
JSON representation
To test comprehension of JavaScript fundamentals, such as variables, numbers, operators, strings, and arrays.
- Host: GitHub
- URL: https://github.com/jasheloper/silly-story-generator
- Owner: jasheloper
- Created: 2023-09-08T01:50:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-30T13:37:13.000Z (almost 2 years ago)
- Last Synced: 2025-06-18T02:41:38.070Z (4 months ago)
- Topics: javascript, mdn
- Language: JavaScript
- Homepage: https://jasheloper.github.io/silly-story-generator/
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## View Live Demo
https://jasheloper.github.io/silly-story-generator/
## Objective
To test comprehension of JavaScript fundamentals, such as variables, numbers, operators, strings, and arrays.
## Steps to Complete:
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Silly_story_generator#steps_to_complete
## Project Brief
You have been provided with some raw HTML/CSS and a few text strings and JavaScript functions; you need to write the necessary JavaScript to turn this into a working program, which does the following:
- Generates a silly story when the "Generate random story" button is pressed.
- Replaces the default name "Bob" in the story with a custom name, only if a custom name is entered into the "Enter custom name" text field before the generate button is pressed.
- Converts the default US weight and temperature quantities and units in the story into UK equivalents if the UK radio button is checked before the generate button is pressed.
- Generates a new random silly story every time the button is pressed.