JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

JavaScript

var Quo = function (string) {
    var cut = Array.prototype.slice.call(string, 2);
    this.status = cut;
};

Quo.prototype.get_status = function() {
    return this.status.join('');
};

var myQuo = new Quo('confused?!?!');
console.log(myQuo.get_status());
var statusObject = {
    status: Array.prototype.slice.call('Pretty Good!', 2)
};

var log = console.log;

var status = Quo.prototype.get_status.apply(statusObject);
log('Quo prototype apply invocation', status)


var add = function(a,b) { return a + b;};
var array = [2,3];

var sum = add.apply(null, array);
var log = console.log;
log('sum', sum);