+ 1

Hello fam! Please where and when do i use a conditional or a loop in JavaScript codes?

When to use a conditional instead of a loop or a loop instead of a conditional

22nd May 2020, 5:16 PM
Infinite
Infinite - avatar
1 Antwort
+ 3
You use conditionals when you want to decide under which circumstances *either* one thing *or* another thing happens. You use loops whenever you need to do one thing several times.
22nd May 2020, 5:33 PM
HonFu
HonFu - avatar