javascript if without brackets

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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.