You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript has three primitive types -- `string`, `number`, `boolean` -- and they are present in TypeScript as well. You can declare them just as you would in JavaScript. However, in TypeScript, you may _optionally_ add a type. As mentioned previously, in most cases TypeScript can infer the type correctly.
I understand the authors meaning for the example but we may need to adjust the wording.
The text was updated successfully, but these errors were encountered:
Would it be better to say "three frequently used primitive types"?
And we can also link the MDN resource as a reference for learning about all primitive types.
In most textbooks and at MDN it is mentioned that JavaScript has 7 primitive types. However, in this lesson, we say there are 3.
curriculum-backend-readings/module8-typescript/r1.1-everyday-types/README.md
Line 29 in 19fe42e
I understand the authors meaning for the example but we may need to adjust the wording.
The text was updated successfully, but these errors were encountered: