JSFiddle - React, Tailwind, and code Playground

by phoenix_suresh

JavaScript

var error = {"Username cannot be empty", "Password cannot be empty"};
             
$.each(error, function(key, index) {
    alert(key);
    alert(index);
});