JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

JavaScript

var func = (val) => val.toUpperCase();
console.log(func('hey hey'));
var arr = [2, 4, 6, 8, 11, 13, 21, 19, 2, 0];
console.log(arr.map(v => v + 1))
var str = '';
console.log(arr.map(el => str += el), str);


// Construct a DOM query
var error = {
    code: 403,
    message: 'FORBIDDEN'
}
var errorDisplayMessage = `\n\nError Code: ${error.code}\nError Msg:  ${error.message}`
console.log('errorDisplayMessage', errorDisplayMessage);
var a = b = credentials = foo = bar = 123;
// Construct an HTTP request prefix is used to interpret the replacements and construction
var GET = function(url, handler) { handler(url)}
var z = GET(`http://foo.org/bar?a=${a}&b=${b}`, myOnReadyStateChangeHandler);

function myOnReadyStateChangeHandler(url) {
    var arr;
    console.log('mORSCH', url)
    
}