JSFiddle - React, Tailwind, and code Playground

by Devendra Mani

HTML

<div id="a">a</div>
<div id="b">b</div>
<div id="c">c</div>
<div id="d">d</div>

JavaScript

var a =document.getElementById("a");
    var b =document.getElementById("b");
    var c = document.getElementById("c");
    var d = document.getElementById("d");

    var identities = [a,b,c,d];

    for (i= 0; i < identities.length; i++){


     			identities[i].style.border = '1.5px solid red';
     
     }