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));
</script>
</body>
</html>