An open API service indexing awesome lists of open source software.

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.

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.