"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

How Do I: Create and Use Classes in JavaScript?

by Chris Pels

In this video Chris Pels shows how to create classes in JavaScript with functionality similar to other programming languages with object oriented capabilities. First a sample web site project is created with an external JavaScript file. A function() is created and the difference between using the function as a “function” and as a class constructor with the “new” keyword is discussed. Then public properties are added to the class constructor as well as private variables. Next a separate function is created and assigned as a method to the class. Alternatively, the same method is shown as a function defined in the class constructor. Finally, a private class method is created and used within the class constructor.

▶ Watch video (18 minutes)





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/videos/how-do-i/how-do-i-create-and-use-classes-in-javascript.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>