The code I am currently working on is as follows:
function look(str) {
var stringArr = ['JAVA'];
var arr = [];
var novaString = ''
for(i = 0; i < stringArr.length; i++) {
arr = stringArr;
}
console.log(arr)
return arr;
} look('arr');
I am aiming for the output to be in this format:
[J]
[JA]
[JAV]
[JAVA]
[JAV]
[JA]
[J]
No further details are available at this time.