JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = 1, b = 'x', c = true;

    var d = {a: a, b: b, c: c}; // <--- object literal
    var e = [a, b, c];          // <--- array
    var f = {a, b, c};          // <--- what exactly is this??

    // these all give the same output:
    alert(d.a  + ', ' + d.b +  ', ' + d.c );
    alert(e[0] + ', ' + e[1] + ', ' + e[2]);
    alert(f.a  + ', ' + f.b +  ', ' + f.c );