what is if statement in java script If statement : java script me if statement ka use aap kisi bhi condition ko check karne ke liye kar sakte h. iske liye aap pahle variable ko declare kare eske baad me aap if condition me aap pahle condition ko dete h eske baad me statement. agar aapki condition true hoti hai to if block me diya gaya statement exicute ho jayega otherwise condition false hone per controller bahar ho jayega. Syntax: If(condition) { Statement; } Example: Var a=10; If (a<20) { Console.log(a); }
Learn coding with My Blog 'akaraklearncoding.blogspot.com' | here you learn java programming language, php language , html, css and javascript languages