News

Note that the Java ternary operator example above could just have easily been written using an if…else statement. The code below performs that exact same logic as the Java ternary operator example ...
SALONI: So, say for example, if Scrat finds the acorn, he's happy, else he's sad and keeps searching ... This is the sixth of six clips in the Hour of Code tutorial.
On-screen text reads 'Saloni, Health Tech researcher'. SALONI: An if/else statement is a decision between two things. So, say, for example, if it's a weekday, it's time to go to school.