Lesson 6: Implement Static Properties and Methods in JavaScript
Technologies: JavaScript
Lesson Description
To hold onto a piece of data for all instances of a class, use the static keyword in JavaScript. This data, exposed as a static property, is accessed only through the class name and not the instance variable. You can create private or public static properties and methods. Static methods are generally used when you pass some data in and something is returned with no need to hold onto state. A static constructor is used to initialize your static properties. In this lesson you create several classes to illustrate the use of static.
Content
Lesson Objectives 00:05
Static Keyword in JavaScript 00:19
Static Properties in JavaScript 01:06
DEMO: Static Class Properties in JavaScript 01:34
Static Read-Only Properties in JavaScript 04:19
DEMO: Static Read-Only Class Properties in JavaScript 04:38
Static Constructors in JavaScript 05:35
DEMO: Static Constructors in JavaScript 06:07
Static Class Methods in JavaScript 07:55
DEMO: Static Class Methods in JavaScript 08:20
Helper Classes 09:54
DEMO: Math Helper Class in JavaScript 10:46
DEMO: Application Settings Class in JavaScript 11:39
Lesson Summary 12:53
Module Summary 13:08
Where to Go From Here 13:35
Helpful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube
JavaScript
https://developer.mozilla.org/en-US/d...
JavaScript Object-Oriented Programming
https://developer.mozilla.org/en-US/d...
JavaScript Class Keyword
https://developer.mozilla.org/en-US/d...
Classes in JavaScript
https://developer.mozilla.org/en-US/d...
JavaScript Static Keyword
https://developer.mozilla.org/en-US/d...
#javascriptclass #oop #objectorientedprogramming #javascriptoop #javascriptobjectorientedprogramming #javascript #html #css #javascriptdeveloper #javascripttutorial #javascriptintro #developer #development #web #website #webdeveloper #webprogrammer #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: psheriff@pdsa.com
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff
En esta página del sitio puede ver el video en línea Lesson 6: Implement Static Properties and Methods in JavaScript de Duración hora minuto segunda en buena calidad , que subió el usuario Paul D. Sheriff 05 julio 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 30 veces y le gustó 2 a los espectadores. Disfruta viendo!