Skip to content

Instantly share code, notes, and snippets.

@prophen
Last active August 15, 2019 04:40
Show Gist options
  • Save prophen/269161d5d1dec5255dca9d41dda85ba0 to your computer and use it in GitHub Desktop.
Save prophen/269161d5d1dec5255dca9d41dda85ba0 to your computer and use it in GitHub Desktop.

Check for Understanding

  • Mention different operators that can be used in JavaScript.

We've talked about arithmetic operators, comparison operators, and logical operators in JavaScript.

  • Write down the syntax of else if statement.
if (/* condition */){
  // Do this if the condition is true
} else {
  // Do this if the condition is false
}
  • In JavaScript which operator has the highest precedence?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence I googled it. I think the grouping operator, ( ), or parentheses has the highest pecedence.

  • What is the difference between = and == operator?

= is an assignment operator == is the Equal comparison operator.

  • How do you declare a Boolean in JavaScript?

Assign true or false, no quotation marks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment