JSFiddle - React, Tailwind, and code Playground

by aparadise

HTML

https://www.w3schools.com/jsref/jsref_operators.asp

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_comparison

JavaScript

var x = 1;
var y = 2;

var foo = 44;

 foo == x ? alert(x):alert(y);

//example = (age < 18) ? "Too young":"Old enough";