JSFiddle - React, Tailwind, and code Playground

JavaScript

n=prompt();alert(eval(n+'+'+n.length+'+'+n.split('').join('+')));