Common Computer Science References
At the end of this lesson, you will be able to:
understand and use an if ... then ... else statement
what is a boolean expression
how to create "radio buttons" in html
look here
in MDL, it is under toggle
to see if the radio button is selected or not, you get a boolean by doing:
const weekday = document.getElementById('weekday').checked
go over branching in 2 directions
create a program that:
let the user select a radio button (Positive or Negative)
the computer then generates a random number, that is either positive or negative
Ex 1 🠒 6 or -1 🠒 -6
ensure you follow all the steps in creating a program
do the above program in PHP