JSFiddle - React, Tailwind, and code Playground

JavaScript

function sum(a, b) {
  return a + b;
};

document.body.innerHTML = sum(1, '2');