Indentation with switch & case

I’m just learning how to use switch and cases. After:

let athleteFinalPosition = 'first place';
switch (athleteFinalPosition) {
  case 'first place':

nothing indents. According to the examples given in the lesson, the next line should indent but it doesn’t. Is there something I’m missing or is it just a bug?

if the indention isn’t automatic, you can always use the tab key to insert additional indention (or shift-tab to un-indent a line)

1 Like

Yeah, it happened to me too. I’m guessing it’s a bug, so maybe you should just indent it yourself :upside_down_face:

1 Like

it is probably a bug of the code editor. Also remember indentation doesn’t have meaning in JavaScript like it does in Python.

1 Like

but it is still nice/better to have good indention to improve readability of your code.

1 Like