LESSON 06 – IF STATEMENTS
WORK
Create the
following form that will check if a number in a text field is positive or
negative. Assume that zero is a
positive number.
Create the
following form that will do a division.
However, before doing this, it will check to see that the divisor is not
zero. If it is zero, it will put an
appropriate message instead.
Create a webpage
that uses javascript to display a welcome message. There should be a 50% chance that the message is “Hello! Good to see you!”. There should also be a 50% chance that the message is “Why are
you here? Go away.”
Hint: Math.random()
gives you a random number between 0 and 1.