// Get an SVGAngle object
const svg = document.querySelector("svg");
const angle = svg.createSVGAngle();
// Set the value
angle.value = 45;
console.log(angle.value); // Output: 45
// Reflecting the value
angle.value = 90;
console.log(angle.value); // Output: 90SVGAngle: value property / notebook
SVGAngle: value property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.