JSFiddle - React, Tailwind, and code Playground

by kasperfish

JavaScript

var str= "this is a value/100";
var temp=str.split("/");

var xyz = temp[0];
var rfv = temp[1];

alert('xyz = '+xyz+'\n rfv = '+rfv);