What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 08:50:21
3. What are private member variables. in js
function ConstructorCar(initValue) { this.publicMember = initValue; let _privateMember = initValue; //private member this.getPrivateMember = function() { return _privateMember; } this.setPrivateMember = function(v) { _privateMember = v; }}Construc... Add solution -
Javascript 2022-02-02 21:20:42
what is prototype in javascript
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2022-02-01 00:07:57
javascript all type of data
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
Javascript 2022-01-24 02:00:56
data type javascript
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
C++ 2021-10-08 10:51:09
function prototype
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2021-10-03 17:24:04
javascript prototype explained
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2021-09-24 02:39:02
js data types
/* The latest ECMAScript standard defines nine types: Six Data Types that are primitives, checked by typeof operator: undefined : typeof instance === "undefined" Boolean : typeof instance === "boolean" Number : typeof instance === &qu... Add solution -
Javascript 2021-09-15 19:21:04
function prototype javascript
/*Prototype is used to add properties/methods to a constructor function as in example below */ function ConstructorFunction(name){ this.name = name //referencing to current executing object } ConstructorFunction.prototype.age = 18 let objectName = new ... Add solution -
Javascript 2021-09-01 07:46:02
asynchronous function using function constructor
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor; // assume someAsyncCall is a call to another async func we await for that returns 1 (just make this simpler) const func = new AsyncFunction('arg1', 'arg2', 'return arg1 * arg2 * ... Add solution
Best helpers
Ranking is empty