JSFiddle - React, Tailwind, and code Playground

JavaScript

var string = '123'
alert(string[1] == '2') // should alert true