JSFiddle - React, Tailwind, and code Playground

by hippietrail

HTML

<script src="http://files.quickmediasolutions.com/temp/stack.min.js"></script>

JavaScript

// Create a site object and get a response for
// all of the tags on the site
var site = API.Site('stackoverflow');
var response = site.Tags().Exec();

// This array will contain all of the tags
var tags = [];

// Fetch all of the pages and append each tag
// name to the array declared above
response.Fetch(function(data, more) {
    
    for(var i=0;i<data.length;++i) {
        
        if(data[i].name.length == 3)
            tags.push(data[i].name);
        
    }
    
    // If the 'more' parameter is false - we have reached
    // the end of the pages and we can do something with
    // the list of tags now.
    if(!more) {
        
        //...
        alert(tags);
        
    }
    
}, true);