1
Answer

how to display console.log on render page

selvi jp

selvi jp

3y
324
1

   if (response.ok) {

           console.log("login successful");

           } else {

  console.log('Username Password is incorrect');//i want to show this console on h1 tag in class componenet

            

           window.alert("Username and Password is incorrect");

         }

       } 

Answers (1)