JSFiddle - React, Tailwind, and code Playground
HTML
<input id="input-status" type="text" value="0">
JavaScript
status = parseInt($('#input-status').val(), 10);
test = parseInt($('#input-status').val(), 10);
console.log(typeof status);
console.log(typeof test);
if (status === 0) {
console.log('success!');
// do something, in Firefox the code reaches here, in Chrome NOT !
}