JSFiddle - React, Tailwind, and code Playground

JavaScript

var test = {
        1: 'a',
        2: 'b',
        3: 'c'
    }
    
    for (var i in test) {
        console.log(typeof i, i);
    }