From 6afa83458f331cf15cca974b8ba5d244c82a4f9b Mon Sep 17 00:00:00 2001 From: jdmedlock Date: Wed, 6 Mar 2019 09:12:34 -0600 Subject: [PATCH] Feature: Add TrueOrFalse app specification Add TrueOrFalse app specification Resolves: N/a See also: N/a --- Projects/True-or-False-App.md | 37 +++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 38 insertions(+) create mode 100644 Projects/True-or-False-App.md diff --git a/Projects/True-or-False-App.md b/Projects/True-or-False-App.md new file mode 100644 index 00000000..b20eb710 --- /dev/null +++ b/Projects/True-or-False-App.md @@ -0,0 +1,37 @@ +# TrueOrFalse + +Something every developer needs to clearly understand is the result of +conditional expressions like `x === y`. This is a bit more involved for +Javascript developers who must also understand the concept of _truthiness_. + +TrueOrFalse helps by displaying the result when a conditional operator is +applied to two values. Users can use this to test their knowledge and +explore edge cases. + +The two values and the conditional operator are entered by the user and the +result to be displayed will be TRUE or FALSE. The implemenation must not use +the `eval()` function to generate the result of the conditional. + +## User Stories + +- [ ] User can enter two strings to be compared +- [ ] User can enter a valid Javascript conditional operator to be used +to compare the two strings +- [ ] User can see the result of the conditional as TRUE or FALSE +- [ ] User can see a warning if the input strings or conditional operator +that has been entered is not valid. + +## Bonus features + +- [ ] User can specify the type of each of the two strings so numbers can +be compared to strings, strings to booleans, etc. + +## Useful links and resources + +- [Comparison Operators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators) +- [Conditional Javascript for Experts](https://hackernoon.com/conditional-javascript-for-experts-d2aa456ef67c) +- [Truthy and Falsy: When all is not equal in Javascript](https://www.sitepoint.com/javascript-truthy-falsy/) + +## Example projects + +N/a diff --git a/README.md b/README.md index c3e0adc0..b199210e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Each project has the following **features**: | [Slack Archiver](./Projects/Slack-Archiver.md) | | [String Art](./Projects/String-Art.md) | | [Timezone Slackbot](./Projects/Timezone-Slackbot.md) | +| [TrueOrFalse](./Projects/True-or-False-App.md) | | [Wind Chill](./Projects/Windchill-App.md) | ## Contribution