48.1k views
5 votes
Which statement is written correctly?

Which statement is written correctly?-example-1
User Yort
by
4.9k points

1 Answer

5 votes

Answer:

B.

Step-by-step explanation:

In Javascript, the if should have a condition attached to it with parenthesis and curly braces.

User DINA TAKLIT
by
5.4k points