🔒 Closed Tanong po -- regarding react js

Status
Not open for further replies.

Ze_Ro

Elite
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
  • 553
    Views
  • 2
    Participants
Last reply from:
Ze_Ro

Trending Topics

Online now

Members online
580
Guests online
2,965
Total visitors
3,545

Forum statistics

Threads
2,301,953
Posts
29,145,464
Members
1,199,332
Latest member
testingthewater
Back
Top