JSFiddle - React, Tailwind, and code Playground

by Santosh Thakur

HTML

<div>
    <input type="text" value="text" />
</div>

JavaScript 1.7

function rules(colour, quantity) {
    var i;
    for (i = 0; i < quantity; i++)
    document.writeln("<hr color='" + colour + "'>")
}

document.writeln("<h2> A function with parameters definition and call</h2>")
rules('RED', 3)
document.writeln("<p>3 red lines and 4 blue ones</p>")
rules('BLUE', 4)