JSFiddle - React, Tailwind, and code Playground
by Karl Hui
HTML
<h1>This is a simple header</h1>
CSS
h1{
font-size:15px;
color:#00f;
text-decoration:underline;
-webkit-transition-duration:0.2s;
}
JavaScript
function add(a, b) {
return a + b;
}
function yellAtMe(thingtoyell) {
return "The thing you've said is: " + thingtoyell +
" This is what is looks like if you yell: " +
thingtoyell.toUpperCase();
}
document.querySelector("h1").textContent = (yellAtMe("fooooo"));