Kurniawan”); The code above does not have an error because (lastName = “Kurniawan”) is an expression. let fullName = “Kurniawan” + “Widodo”; The code above does not have an error because “Kurniawan” + “Widodo” is also an expression. Through the code example above, we can imagine a variable as a box or container that stores values. The initialization or assignment process means we enter values into the box. Each variable has a name that we can call and use. We can name variables with any name, but make sure the name still makes sense in the context so that the code is easy to maintain . It’s best to avoid naming variables with general terms like “data”. Use variable names that describe the value of the variable itself. Here are some rules for naming variables that you need to know: Must start with a letter or underscore .
Can consist of letters numbers and underscore