README.md

December 4, 2022 ยท View on GitHub

[ [ [ Learn If statement ] ] ]

Description

You will learn the if statement. Very easy to understand! Vote for me!

More Info

Submitted On
ByMr.PoO
LevelBeginner
User Rating3.5 (78 globes from 22 users)
Compatibility
CategoryCoding Standards
WorldJava
Archive File

Source Code

<script language="javascript">
var age=prompt("How old are u?");
if (age < 10)
{
document.write("Your not old enough to view material on this website, sorry.");
}
if (age > 10)
{
document.write("You are old enough to view contents on this webpage!");
}
else
{
document.write("You didnt write anything!");
}
</script>