mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-30 11:30:07 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8209790c8d
commit
ea39e3d0c3
@ -131,6 +131,14 @@
|
|||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
//
|
||||||
|
// A constructor is simply a function that "constructs" or populates an
|
||||||
|
// object.
|
||||||
|
//
|
||||||
|
// By convention constructor functions are capitalized (Pascal-case)
|
||||||
|
//
|
||||||
|
// Classic constructors are called with a "new" keyword which creates a
|
||||||
|
// bare instance and passes it to the function as the call context.
|
||||||
//
|
//
|
||||||
|
|
||||||
function A(){
|
function A(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user