JSFiddle - React, Tailwind, and code Playground

by Sergio Kagiema

JavaScript

//Need to fix this code- All Properties of the Object they have to be 
//Array elements in One Array

var o = {name:"alkis", age:25};

for(var prop in o){
    
    var oValues=[];

    oValues.push(o[prop]);
    
   // alert(oValues);
    console.log(oValues);

};