JSFiddle - React, Tailwind, and code Playground

by Guizeppe Pippero

JavaScript

var s = [{name: "test 1", code: ["1","11","111","1111"]},{name: "test 2", code: ["2","22","222","2222"]}]
 
   
	
	for(var i=0;i< s.length;i++){
		 s.i = s[i];
		alert(s.i.name)
	}