JSFiddle - React, Tailwind, and code Playground

by shravan

JavaScript

"use strict"

function sum(x, y) {
  return x + y;
}

function tickElapsedFrom(year) {

  var now = new Date().getTime();
  var then = new Date(year, 0, 1).getTime();

  return (then - now);
}

function divide(x, y) {
  return x / y;
}

console.log(divide(1,0));