FrontendInterviews.dev

648. switch Case Matching

Easy•

Predict the output.

switch ("1") {
  case 1:
    console.log("number")
    break
  case "1":
    console.log("string")
}

What is printed in the console?

Select an option and submit your answer.
Next Problem