Packt
Mastering JavaScript Variables – VAR, LET & CONST in 2025

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
Packt

Mastering JavaScript Variables – VAR, LET & CONST in 2025

Inclus avec Coursera Plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

7 heures à compléter
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

7 heures à compléter
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • Understand the three stages in a variable's lifecycle and how they affect variable behavior.

  • Explore the differences between VAR, LET, and CONST, and how each handles scoping and hoisting.

  • Learn how to use JavaScript's execution contexts and apply debugging techniques effectively.

  • Gain a solid understanding of block, function, and global scope in JavaScript with practical examples.

Compétences que vous acquerrez

  • Catégorie : Maintainability
  • Catégorie : Debugging
  • Catégorie : Scripting
  • Catégorie : Javascript
  • Catégorie : Scripting Languages

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

mai 2025

Évaluations

7 devoirs

Enseigné en Anglais

Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées

 logos de Petrobras, TATA, Danone, Capgemini, P&G et L'Oreal

Il y a 6 modules dans ce cours

In this module, we will introduce you to the fundamental concepts of JavaScript variables, including execution context, scope, and temporal dead zones. You'll explore how different variable declarations, such as VAR, LET, and CONST, interact within various scopes, and how hoisting affects their behavior. By the end, you'll be equipped to understand and manage JavaScript's variable lifecycle and scope in your applications.

Inclus

29 vidéos1 lecture1 devoir

In this module, we will dive into the creation phase of JavaScript's execution context, breaking down the internal processes of how the engine sets up variables and functions. You'll explore the critical role of the Realm Record, Environment Records, and other key fields in this phase. Through practical examples, you'll gain a deep understanding of how JavaScript organizes and manages execution contexts to handle your code effectively.

Inclus

17 vidéos1 devoir

In this module, we will explore the execution phase of JavaScript’s execution context, focusing on the call stack and how it manages the execution of code. Through detailed examples, you'll gain insights into how function execution contexts are formed and executed. By the end, you'll be able to follow code execution step-by-step, understanding the inner workings of JavaScript at runtime.

Inclus

5 vidéos1 devoir

In this module, we will focus on the differences between VAR, LET, and CONST, as defined by ECMAScript, and explore how they function in relation to block scope. You'll learn the specific rules around redeclaration, especially for LET, and understand how block-level scope works with practical examples. By the end of this section, you'll have a solid grasp of how these variable types interact with blocks in JavaScript.

Inclus

6 vidéos1 devoir

In this module, we will introduce the concepts of lexical and dynamic scoping, explaining their key differences. Through examples, you'll see how JavaScript uses lexical scoping to determine variable resolution and how this contrasts with dynamic scoping, particularly in the context of Bash. By the end, you'll be able to understand and navigate scoping rules in both languages.

Inclus

2 vidéos1 devoir

In this final module, we will wrap up by discussing immutability with CONST, exploring how Object.freeze() can help achieve true immutability in objects. You'll also review the use cases for VAR in today's JavaScript environment, ensuring you understand when and why to use it. The module concludes with a summary of key concepts covered throughout the course.

Inclus

4 vidéos2 devoirs

Obtenez un certificat professionnel

Ajoutez ce titre à votre profil LinkedIn, à votre curriculum vitae ou à votre CV. Partagez-le sur les médias sociaux et dans votre évaluation des performances.

Instructeur

Packt - Course Instructors
Packt
752 Cours125 042 apprenants

Offert par

Packt

En savoir plus sur Software Development

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.
Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’
Jennifer J.
Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’
Larry W.
Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’
Chaitanya A.
’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’
Coursera Plus

Ouvrez de nouvelles portes avec Coursera Plus

Accès illimité à 10,000+ cours de niveau international, projets pratiques et programmes de certification prêts à l'emploi - tous inclus dans votre abonnement.

Faites progresser votre carrière avec un diplôme en ligne

Obtenez un diplôme auprès d’universités de renommée mondiale - 100 % en ligne

Rejoignez plus de 3 400 entreprises mondiales qui ont choisi Coursera pour les affaires

Améliorez les compétences de vos employés pour exceller dans l’économie numérique

Foire Aux Questions