JSFiddle - React, Tailwind, and code Playground

JavaScript

var result = prompt('enter two values seperated by a comma').split(',');
alert('first value: ' + result[0]);
alert('second value: ' + result[1]);