Lesson 4: Create Class Properties in JavaScript

Published: 05 July 2025
on channel: Paul D. Sheriff
19
2

Lesson 4: Create Class Properties in JavaScript
Technologies: JavaScript

Lesson Description
There are many different ways you can create properties in a class. In this lesson you learn to create public properties and private fields. Fields can be selectively exposed as read-only, write-only, or both read and write. Methods can also be marked as private.

Content
Lesson Objectives 00:03
Class Fields in JavaScript 00:23
DEMO: Create Class Fields in JavaScript 00:54
Class Getters and Setters in JavaScript 02:50
DEMO: Create Write-Only Properties in JavaScript 03:41
DEMO: Create Read-Only Properties in JavaScript 05:30
DEMO: Create Read/Write Properties in JavaScript 06:50
Private Class Methods in JavaScript 07:40
DEMO: Create Private Class Methods in JavaScript 08:20
Optional Chaining Operator in JavaScript 11:15
DEMO: Optional Chaining Operator in JavaScript 12:13
Lesson Summary 14:49

Helpful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube

JavaScript
https://developer.mozilla.org/en-US/d...

Using JavaScript Classes
https://developer.mozilla.org/en-US/d...

Classes in JavaScript
https://developer.mozilla.org/en-US/d...

JavaScript Class Keyword
https://developer.mozilla.org/en-US/d...

#javascriptclass #javascriptclassproperties #javascriptclassmethods #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


On this page of the site you can watch the video online Lesson 4: Create Class Properties in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Paul D. Sheriff 05 July 2025, share the link with friends and acquaintances, this video has already been watched 19 times on youtube and it was liked by 2 viewers. Enjoy your viewing!