OneCompiler

find index of element

107

var a=[];
let x=2;
n=100;

for(let i=2;i<n;i++)
{
a.push(i);}
console.log(a);