Formatting with Switch Theory based question

Formatting with Switch Theory based question
0.0 0

#1
var x = 1;
switch (???) {
??? ???:
console.log('A');
}
//how do I complete the following such that A is logged to the console? 

#2

Above talks about formatting and the strict equality operator in switch statements.


#3

I would suggest having a look at the syntax:


#4

the point is, after reading that, I don’t really understand how it applies. Its like I’m reading german and then french.


#5

So what do you want to achieve? Or is it about understanding switch statements?


#6

I want to gain a better understanding of syntax for switch statements. I am making alot of syntax errors that allow me to “almost complete” all sorts of challenges. I want to know how strict equality works in this example, so that I can learn how to debug for myself and not rely on others.


#7

Have you done the freeCodeCamp challenges about switch statements?

There is no strict equality here?


#8

I have done them. I found the checklist of what you had to do quite confusing. So I’m using other apps now.


#9

I’ll just ask one of my friends I guess.