JSFiddle - React, Tailwind, and code Playground

JavaScript

var arr = ["Just a test","I miss you so much darling #$%&%@;..\]]/"];

console.log(arr);
for(var c=0; c < arr.length; c++){
	console.log(arr[c]);

    //wait 1 sec for next loop
	setTimeout(function(arr[c]) {
		do_magic(arr[c]);
	}, 1000);
}

function do_magic (passed_var){
    console.log(passed_var);
}