Saved X
Google login
SignUp with Email
X

How to make an if statement in javascript

theindreshverma ( Edited  Sep 01, 11:16 pm )
Login

Make if statement is javascript

<script>
var x = 5;
if(x == 5) {
   alert('x is 5');
}
else {
   alert('x is not 5');
}
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes