JSFiddle - React, Tailwind, and code Playground

by Gereltod Gotsbayar

HTML

<strong>My name</strong>

JavaScript

var p = document.getElementsByTagName("strong")[0];  

if (p.textContent == "My name") {
    alert('da') 
}
else {alert('no')} ;