JSFiddle - React, Tailwind, and code Playground

by basarat

JavaScript

function test(x){return x*-1 + 200}
alert(test(50)) // okay 150
alert(test(100)) // okay 100 
alert(test(150)) // okay 50
alert(test(200)) // wrong 0