let $name = new Gyroscope();
$name.start();

$name.onreading = () => {
console.log("Angular velocity around the X-axis " + $name.x);
console.log("Angular velocity around the Y-axis " + $name.y);
console.log("Angular velocity around the Z-axis " + $name.z);
};

$name.onerror = event => console.log(event.error.name, event.error.message);