JSFiddle - React, Tailwind, and code Playground

by cordeliaf

JavaScript

var dog = { 
    breed: "Maltese", 
    names: ["Simba","Coco","Ben", "Tigger"], 
    color: "white",
    description: "They are all white in color, sometimes come with beige on their ears", 
    size:[ "medium",  0, 1, 2 ]    
};       
var sim =["simba", "fong"];
alert(sim.join(""));

alert(sim[0].toUpperCase()+" "+"size is:" + dog.size[0]);