function someFunction(n) {
for (var i=0;i<n*1000;i++) {
for (var j=0;j<n*20;j++) {
console.log(i+j);
}
}
}
Time complexity of the above JavaScript function is
Download the Study24x7 App, so you can connect and collaborate.