JSFiddle - React, Tailwind, and code Playground
by Tom Randolph
HTML
<p>
Modify the function <code>runner</code> so that the output is <code>true</code>.
</p>
<p>
Basic Requirements:
</p>
<ul>
<li>Code can only be added/modified/deleted in the <code>runner</code> function</li>
<li>Do not modify anything else.</li>
<li>Do not modify myObj directly.</li>
</ul>
<textarea id="output"></textarea>
JavaScript
var myObj = {
"isTrue": false
};
function modifier( state ){
state = state || false;
this.isTrue = state;
}
function runner(){
}
runner();
document.getElementById( "output" ).value = myObj.isTrue;