JSFiddle - React, Tailwind, and code Playground
by jt3k
HTML
<div id='hello'></div>
JavaScript
var centerX = 0;
var centerY = 0;
var radius = 99;
var steps = 11;
var xValues = new Array();
var yValues = new Array();
for (var i = 0; i < steps; i++) {
xValues[i] = (centerX + radius * Math.cos(2 * Math.PI * i / steps));
yValues[i] = (centerY + radius * Math.sin(2 * Math.PI * i / steps));
document.getElementById('hello').innerHTML= document.getElementById('hello').innerHTML+xValues[i]+' '+yValues[i]+'|';
}