JavaScript Function call()

The JavaScript Function call() method calls a function containing this value and an argument list. Syntax: function.call(thisArg, arguments) Parameters: thisArg: It is used as this keyword for the call to a function. arguments: It represents the function parameters. Return: Result of the invoking function. Example: <!DOCTYPE html> <html> <body> <script> function Jewel(Carat,Stone) { this.Carat = … Read more

JavaScript Function bind()

The JavaScript Function bind() method creates a new function. Syntax: function.bind (thisArg [arguments]) Parameters: thisArg: It is used as this keyword for the call to a function. arguments: It represents the function parameters. Return: A new function will be the replica of the calling function. Example: <!DOCTYPE html> <html> <body> <script> var jewel = { … Read more

JavaScript Function apply()

The JavaScript Function apply() method calls a function containing this value and a single array of arguments. Syntax: function.apply(thisArg, array) Parameters: thisArg: It is used as this keyword for the call to a function. It is an optional parameter. array: It represents an array-like object. Return: Result of the invoking function. Example: <!DOCTYPE html> <html> … Read more

JavaScript DataView.getUint32()

The JavaScript DataView.getUint32() method inserts an unsigned 32-bit integer number at a specified location. Syntax: dataview.getUint32(byteOffset) Parameters: byteoffset: It represents the offset (in byte) from the start of the data view. Return: The unsigned integer number of 32-bit. Example: <!DOCTYPE html> <html> <body> <script> var dv = new ArrayBuffer(8); var a = new DataView(dv); a.setUint32(1,65468565.98); … Read more

JavaScript DataView.getUint16()

The JavaScript DataView.getUint16() method inserts an unsigned 16-bit integer number at a specified location. Syntax: dataview.getUint16(byteOffset) Parameters: byteoffset: It represents the offset (in byte) from the start of the data view. Return: The unsigned integer number of 16-bit. Example: <!DOCTYPE html> <html> <body> <script> var dv = new ArrayBuffer(8); var a = new DataView(dv); a.setUint16(1,6545.98); … Read more

JavaScript DataView.getUint8()

The JavaScript DataView.getUint8() method inserts an unsigned 8-bit integer number at a specified location. Syntax: dataview.getUint8(byteOffset) Parameters: byteoffset: It represents the offset (in byte) from the start of the data view. Return: The unsigned integer number of 8-bit. Example: <!DOCTYPE html> <html> <body> <script> var dv = new ArrayBuffer(8); var a = new DataView(dv); a.setUint8(1,65.98); … Read more

JavaScript DataView.getInt32()

The JavaScript DataView.getInt32() method inserts a signed 32-bit integer number at a specified location. Range of for signed 32-bit integer number: 2,147,483,648 to 2,147,483,647 Syntax: dataview.getInt32(byteOffset) Parameters: byteoffset: It represents the offset (in byte) from the start of the data view. Return: Signed Integer number of 32-bit. Example: <!DOCTYPE html> <html> <body> <script> var dv … Read more

JavaScript DataView.getInt16()

The JavaScript DataView.getInt16() method inserts a signed 16-bit integer number at a specified location. Range of for unsigned 16-bit integer number: 0 to 65,535 Range of for signed 16-bit integer number: 32,768 to 32,767 Syntax: dataview.getInt16(byteOffset) Parameters: byteoffset: It represents the offset (in byte) from the start of the data view. Return: An integer number … Read more

JavaScript DataView.getInt8()

The JavaScript DataView.getInt8() method inserts a signed 8-bit integer number at a specified location. Syntax: dataview.getInt8(byteOffset) Parameters: byteoffset: It represents the offset (in bytes) from the start of the data view. Return: An integer number of 8-bit. Example: <!DOCTYPE html> <html> <body> <script> var dv = new ArrayBuffer(8); var a = new DataView(dv); a.setInt8(1,56.99); document.write(a.getInt8(1)); … Read more