JSFiddle - React, Tailwind, and code Playground

by scrawlon

HTML

<script src="https://www.quickbase.com/db/bfx7sqpm8?a=dbpage&amp;pagename=SurveyData.js"></script>
<script src="http://keith-wood.name/js/jquery.gchart.js"></script>

JavaScript

// create default class
var currentClass = survey1;
var surveyKey = ["html", "css", "js", "jq"];
var surveyVal = ["None", "Beginner", "Intermediate", "Advanced", "Expert"];

// create
var holder = new Array(surveyKey.length);
var counter = new Object();

// iterate through surveys
for (var iSurveys=20; iSurveys<currentClass.length; iSurveys++) {

    // iterate through Keys (html, css, js, jq)
  for (var iKey=0; iKey<surveyKey.length; iKey++) {
  alert(surveyKey[iKey]);
    // iterate though Values (None, Beginner, Intermediate, Advanced, Expert)
    for (var iVal=0; iVal<surveyVal.length; iVal++) {
                 if(currentClass[20].html == surveyVal[iVal]) {
                 alert surveyVal[iVal];
                 else
                 alert("fuck!");
                }
    }// close Values

  }// close Keys

}// close Surveys