Can the snake case be used In JS?

Hi FCC Campers. I know that the camel case (the variable with a lower case word at beginning and upper case word at both next and end) can be used in JS to create a variable that will look like this:

let validCamelCase;

But I have a question.

Is the snake case available for JS to create a variable?

Please answer.

Pummarin :smile:

it’s not usually used, but if you like it…

1 Like

if by is available you mean does javascript allow you then yes. javascript allows you use snakecase in variable naming.

but like my friend said above, it is not usually used. most programmers will tell you to stick with came case.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.