let answer = 42; answer = "The answer to everything: 42"; alert(answer);
Types still matter
let n1 = "42", n2 = 2; alert(n1 * n2);
let n1 = "42", n2 = 2; alert(n1 + n2);
This chapter is all about the primitive types and we'll go through all of them in the next articles. After that, we'll look at some of the built-in objects and how you can define your own complex types.