JSFiddle - React, Tailwind, and code Playground

by tonyleeper

JavaScript

// using .bind() to prepend arguments passed to a function

function square(value) {
  console.log(arguments);
  return value * value;
}

square = square.bind(null, 5);

document.body.textContent = square();