159k views
3 votes
Which set of symbols encloses an if-then code block? Choose the best answer.

straight brackets []
curly brackets {}
backslashes \\
vertical bars ||

1 Answer

2 votes

Here's some code that might help, assuming that you are using JavaScript.

e = "Hello"

if(e === "Hello"){

alert(":D")

}else{

console.log("Um.")

}

I think that the answer is curly brackets.

User Etienne De Martel
by
8.4k points