Project
Roulette

TrueOrFalse

TrueOrFalse helps by displaying the result when a conditional operator is applied to two values.

BeginnerWeb appDev tool3–8hAI-buildable 5/5no setup

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 implementation must not use the eval() function to generate the result of the conditional.

UI
Logic
Useful

Hosting · Free forever

Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.

Deploy it and share a link.

Core features · 4

  • 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

Once it works

  • User can specify the type of each of the two strings so numbers can be compared to strings, strings to booleans, etc

Suggested stack

reacttypescripttailwindreact-hook-form

Track it