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

Trending Topics

Online now

Members online
1,028
Guests online
1,098
Total visitors
2,126

Forum statistics

Threads
2,289,552
Posts
29,059,194
Members
1,212,889
Latest member
macvinxx
Back
Top