JavaScript data types: represent, inspect, and convert
Distinguish text, numbers, booleans, null, and undefined. Use typeof and explicit conversions to build and check an enrollment record with different data types.
- Level
- Beginner
- Lessons
- 5
- Learning steps
- 78
Your lesson journey
Each lesson has a purpose. Follow the order or revisit an idea you want to practise.
5 of 5 lessons shown
The numbers show the lesson order, not your progress.
What you will learn
Distinguish name, value, and type, and explain JavaScript's dynamic typing. Identify String, Number, Boolean, null, and undefined, recognizing other types only for context. Use typeof while correctly interpreting its labels and null's historical particularity. Represent text and numbers, construct messages with template literals, and distinguish basic concatenation from numeric addition. Recognize NaN and Infinity as Number values and separate type from suitability for a problem. Represent states and absences with explicit meaning. Convert with String, Number, and Boolean and predict empty, nonnumeric, and nonempty-text cases. Build and check an enrollment record, explaining decisions and correcting unsuitable conversions.
Before you start
Have completed courses 01 through 05 of Fundamentos de Programación or know their contents. Assumes console JavaScript, console.log, let, const, assignment, names, introductory scope, algorithms, and manual checks. No formal data-type knowledge is required. Exercises use fictional data, no installations, and no real forms.
About this course
Read the full description
Course 06 of Fundamentos de Programación at Código con Criterio. Builds on let, const, and console.log to study value types and choose representations according to purpose.
Five lessons combine explanations, value-and-label diagrams, executable examples, hinted activities, and free-practice labs. Progression goes from typeof and dynamic typing to String, Number, Boolean, null, undefined, and conversions with String, Number, and Boolean. bigint, symbol, and objects are mentioned only for context.
Explains particularities of typeof null, NaN, and Infinity, and conversions that may produce unexpected results. Explicit conversions are practiced before mentioning an implicit-conversion example. Conversion is not presented as automatic data validation.
The final challenge represents enrollment with a textual age and its conversion, a state, an optional absence, and a declaration without an explicit initial value. Includes a complete reference and an alternative with interpretation errors. Activities assess understanding; free code and personal explanations are compared with expected results and have no automatic correction.
No installations, real forms, conditions, loops, arrays, objects, or custom functions are required. Programs are independent; use a fresh context if your tool retains previous declarations.
This course is part of these learning paths
Follow the suggested order or take this course on its own.