Mark As Completed Discussion

Are you sure you're getting this? Click the correct answer from the options.

What is wrong in the below code?

JAVASCRIPT
1var length = 5
2var breadth = 5
3
4if length == breadth{
5    console.log("This is a square")
6}
7else{
8    console.log("This is not a square")
9}

Click the option that best answers the question.

  • Missing `elif` condition
  • Round brackets missing for conditional expression
  • Curly braces used instead of colon and indentation