How do I solve the ( if ) for JavaScript task "Decisions,decisions"?


#1

HOW TO USE AN ( if ) for JavaScript task "Decisions,decisions"???

Examples that I created to understand what an ( if ) does, what these symbol do { } =curly braces, and where to type console.log.

{ = use to SIGN, SEAL your problem,
} = use to DELIVER problem from your answer between ( ) on line 2.to the interpreter black box,
NOTE: using your space bar is very important!
" I am, signed, sealed delivered, I'm yours."

A math ( if ) will look like this:

  1. if ( 4 < 30 ) {
  2. on line 2. press your tab button, then type console.log ( "I am right" )
  3. to confirm this problem and present it in the interpreter black box use symbol }

A Regular ( if ) will look like this:

  1. if ( "baseball" ) {
  2. on line 2. press your tab button, then type console.log ( "You're Correct!" )
  3. to confirm this problem and present it in the interpreter black box use symbol }

HOPE THIS HELPS FOR ALL BEGINNERS IN YOUR FIRST WEEK!


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.