🔒 Closed Tanong po -- regarding react js

Status
Not open for further replies.

Ze_Ro

Forum Guru
good day po . .tanong ko lang po if tama po ito ganito

if(name||lastname||empno||age||
===""){
return "Fied should be complete";
}

gusto ko po sana if walang laman ung field mag rereturn po sya field sould be complete'

tama po ba yung OR execution ko po? || po yan dalawa guhid ..

salamat po
 
Paisa isa dapat siya lods

JavaScript:
if (name  === "" || lastname  === "" || empno  === "" || age  === "") {
   return "Field should be complete";
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 541
    Views
  • 2
    Participants
Last reply from:
Ze_Ro

Online now

Members online
787
Guests online
655
Total visitors
1,442

Forum statistics

Threads
2,276,942
Posts
28,973,215
Members
1,229,649
Latest member
themaharaja
Back
Top