DEV Community

mmvergara
mmvergara

Posted on • Updated on

Javascript Tagalog - For of Loop

Ano ngaba ang For of Loop sa Javascript?
yung for of loop ay parang shorter version lang siya ng regular na for loop. I think the best way para matutunan niyo is to just look at these pictures

Javascript Pinoy Tagalog Object For Loops For of
pwede mo palitan yung "elementName" sa gusto mong name tapos yun yung variable name na gagamitin mo sa loop, for ex. if "x" yung lalagay ko sa element name, then para ma access ko yung variable gagamitin ko yung "x" Console.log(x)


Deconstruction works also dito sa for of loop

Javascript Pinoy Tagalog Object For Loops For of

Eto using for of loop sa objects

Javascript Pinoy Tagalog Object For Loops For of


More tagalog Javascript Learning Resources:
https://javascript-methods-in-tagalog.vercel.app/

Top comments (0)