🔒 Closed Java Script

Status
Not open for further replies.

C0NTINUE

Forum Veteran
20190916_090811.webp

Patulong naman po kung paano gagawin na kapag clinick yung generate yung color yellow mapupunta sa 2nd circle then yung green color mapupunta sa 3rd circle tapos yung black mapupunta sa 1st circle.
 
i-condition mo yan ts. tsaka depende na rin kung pano coding mo jan. mag case or if-else ganon. tsaka madami ka din makikita na sagot sa stackoverflow or makakakuha ka ng idea dun

edit: You do not have permission to view the full content of this post. Log in or register now.
try mo yan ts. kung ganyan ba yung tinutukoy mo
 
isang beses lang ba dapat mangyari yung condition? or tuloy tuloy sila na magsi switch ng position?
iba iba kasi tayo ng approach jan ts. show mo yung code mo jan help kita ayusin natin.
same lang naman halos syntax nyan sa c# kaya maiintindihan ki rin yan
 
Ano ba yan gusto mo ba irandomized yung mga kulay everytime na pipindutin mo yung generate? If yes, gamitin mo yung function na rand or random ng gamit mong programming language. Pero kung may specific na arangement yan tuwing pipindutin mo yung button, gamit ka ng program flow statements gaya ng switch, ifelse.
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 402
    Views
  • 4
    Participants
Last reply from:
C0NTINUE

Trending Topics

Online now

Members online
350
Guests online
666
Total visitors
1,016

Forum statistics

Threads
2,274,597
Posts
28,957,097
Members
1,234,335
Latest member
Unplugged18
Back
Top