javascript if without brackets

Solutions on MaxInterview for javascript if without brackets by the best coders in the world

showing results for - "javascript if without brackets"
Zeph
22 Sep 2019
1if (true)
2  alert("Condition is true");
3else
4  alert("Condition is false");
5
6// Only one line immediately under the if statement, or else its a syntax error.