JSFiddle - React, Tailwind, and code Playground
JavaScript
// this is testing to see if "return" stops a function
$('body').append(function test() {
var test = 'a'
if (test === 'a') {
return '<p>test</p><br />';
}
if (typeof test === 'string') {
return '<p>test1</p><br />';
}
if (test !== 'z') {
return '<p>test2</p><br />';
}
return '<p>test4</p><br />';
});