What do you want to save?
Add Code snippet
New code examples
-
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-01-31 02:42:27
RangeError
//Occurs when passing an invalid value to a function. let nums = Array(-1); /*The constructor function Array(n) creates an empty array of length n. It is not possible to create an array with negative length, so the code results in RangeError: Invalid ... Add solution -
Javascript 2022-01-22 03:11:46
what is instance in javascript
In JavaScript, "instance" does not have this technical meaning because JavaScript does not have this difference between classes and instances. However, in talking about JavaScript, "instance" can be used informally to mean an object c... Add solution -
Javascript 2021-11-15 04:36:14
js this returns undefined
function foo() { console.log(this); } // normal function call foo(); // `this` will refer to `window` // as object method var obj = {bar: foo}; obj.bar(); // `this` will refer to `obj` // as constructor function new foo(); // `this` will refer to a... Add solution -
Javascript 2021-11-10 07:12:13
javascript steps
// 2-now want to craet another table to but the data in it //but before we creat it we need a constructor function function data(from, to, capacity, reserve,lefted) { this.from=from; this.to=to; this.capacity=capacity ; this.reserve=reserve ; this.lef... Add solution -
SQL 2021-10-26 00:05:06
create a plsql object
CREATE TYPE emp_object AS OBJECT( emp_no NUMBER, emp_name VARCHAR2(50), salary NUMBER, manager NUMBER, CONSTRUCTOR FUNCTION emp_object(p_emp_no NUMBER, p_emp_name VARCHAR2, p_salary NUMBER) RETURN SELF AS RESULT), MEMBER PROCEDURE insert_records, MEMBER P... Add solution -
C++ 2021-10-11 13:43:06
default constructor in c++
#include <iostream> class Entity { public: float x, y; void Print() { std::cout << "( " << x << " , " << y << " )" << std::endl; } void Initialize() { x = 0.0f; y = 0.0f;... 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-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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5