JSFiddle - React, Tailwind, and code Playground

by cncent454518

JavaScript

function a(num){
let a =1;
let b= 1;
 let result = 0;
for(let i=1 ; i<=num ; i++){
 result = a+b;
 console.log(result);
}
}
a(5)