JSFiddle - React, Tailwind, and code Playground JavaScript var string1= "Hello how are =you"; var result = string1.split("=")[1]; alert(result)