Lecture13 and 14_JavaScript3 - Confirm Method Input method...

Confirm Method•Input method but takes only Boolean.•Supplies the user with a choice.•Syntax:confirm ("text");•Like prompt, value returned from a confirm box has to be stored in a variable. This variable can then be used for conditional branching.

This
preview
has intentionally blurred sections.
Sign up to view the full version.

A Conditional Statement: if statement•Syntaxif(<Boolean expression>){<then-statement>;}<Boolean expression> -- an expression with an outcome of either true or false.<then-statement> -- one or many JavaScript statements.