
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 598 Articles for Front End Scripts

57 Views
The getUint32() function of the DataView gets and returns an unsigned 32-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getUint32();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setUint32(1, 45544); document.write(dataView.getUint32(1)); Output45544ExampleTo this function you cannot pass float value, if you try to do so it is considered as integer value. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView ... Read More

49 Views
The getUint16() function of the DataView gets and returns an unsigned 16-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getUint16();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setUint16(1, 45544); document.write(dataView.getUint16(1)); Output45544ExampleTo this function you cannot pass float value, if you try to do so it is considered as integer value. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView ... Read More

49 Views
The getInt8() function of the DataView gets and returns a signed 8-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.getInt8();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setInt8(1, 362); document.write(dataView.getInt8(1)); Output106ExampleTo this function you cannot pass float value, if you try to do so it is considered as integer value. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); ... Read More

81 Views
The getInt32() function of the DataView gets and returns a signed 32-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getInt32();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setInt32(1, 36274722); document.write(dataView.getInt32(1)); Output36274722ExampleTo this function you cannot pass float value, if you try to do so it is considered as integer value. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView ... Read More

80 Views
The getInt16() function of the DataView gets and returns a signed 16-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getInt16();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setInt16(1, 3225); document.write(dataView.getInt16(1)); Output3225ExampleTo this function you cannot pass float value, if you try to do so it is considered as integer value. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = ... Read More

97 Views
The getFloat64() function of the DataView gets and returns a signed 64-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.getFloat64();ExampleTry the following example. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView = new DataView(arrayBuffer); dataView.setFloat64(1, 654.44); document.write(dataView.getFloat64(1)); Output654.44ExampleTo this function, in addition to floating point values you can also pass Math functions. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(20); var dataView ... Read More

114 Views
The getFloat32() function of the DataView gets and returns a signed 32-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.getFloat32();ExampleTry the following example. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(8); var dataView = new DataView(arrayBuffer); dataView.setFloat32(1, Math.LOG2E); document.write(dataView.getFloat32(1)); Output1.4426950216293335ExampleTo this function, in addition to floating point values you can also pass Math functions. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(8); var dataView ... Read More

132 Views
The buffer property of the DataView represents the ArrayBuffer of the current DataView.SyntaxIts syntax is as followsdataView.buffer;ExampleTry the following example. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(156); var dataView = new DataView(arrayBuffer); document.write(dataView.buffer.byteLength); Output156

73 Views
The byteOffset property of the DataView represents the offset of the current DataView.SyntaxIts syntax is as followsdataView.byteOffset();ExampleTry the following example. Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(114); var dataView = new DataView(arrayBuffer); document.write(dataView.buffer.byteLength); Output114

116 Views
The byteLength property of the DataView represents the length of the current Data View.SyntaxIts syntax is as followsdataView.byteLength();Example Live Demo JavaScript Example var arrayBuffer = new ArrayBuffer(8); var dataView = new DataView(arrayBuffer); document.write(dataView.byteLength); Output8