JSFiddle - React, Tailwind, and code Playground

by Nicolas PUJOL

JavaScript

var json = {
    "data": [{
        "NumberOfAnswers": 25,
            "Answer": "51-89 Percent of all items in section are <b>IN STOCK<\/b>",
            "Percent": 54.35
    }, {
        "NumberOfAnswers": 21,
            "Answer": "90-100 Percent of all items in section are <b>IN STOCK<\/b>",
            "Percent": 45.65
    }]
};
format(json);

function format(notes) {
    console.log(notes);
    var object = notes.data;
    console.log(object);
    for (var i = 0; i < object.length; i++) {
        var Result = object[i];
        var Answer = Result.Answer;
        console.log(Answer);
    }
}