JSFiddle - React, Tailwind, and code Playground

by Pearlin Lawrence

JavaScript

/*
var myObject = {
    val1: "somevalue",
    func1: function () {
        return this.val1.toUpperCase();
    }
}

myObject.func1()
    "SOMEVALUE"
myObject.val1 "somevalue"

var cafe = {
    drink: "Coffee",
    type: "Black",
    //order: function () {
    //alert "Coffee coming up";
}
}
*/

var catalogue = {
    jewelry: [{
        type: "Bracelet",
        material: ["Stainless Steel", "Silver", "Gold"],
        Size: ["6", "7", "8"]
    }, {
        type: "Necklace",
            "material": ["Stainless Stell", "Silver", "Gold"],
            "Size": ["20", "24"]
    }]
};

//alert(catalogue.jewelry[0].material.join(", "));