JSFiddle - React, Tailwind, and code Playground

by chrisramakers

JavaScript

var a = { 
    num: 5 
}; 
var b = { 
    num: 20 
}; 

function multiply() {
    return this.num * 2; 
} 

document.write(multiply() + '<hr>');
document.write(multiply.call(a) + '<hr>');
document.write(multiply.call(b) + '<hr>');