0

How to make an output true this "xoxoxoxoxo" where x & o must to be 5, with loops and conditional statement in java script?

Java script

7th Jan 2021, 7:56 PM
Defri Chandra
Defri Chandra - avatar
7 Réponses
+ 6
Defri Chandra JaScript , please help us to keep sololearn what it is made for: It is a self-learning platform. So this means, that we should avoid giving codes when people ask for this, before they have done a try by themselves and before they have present it here. It looks really helpful when you post a (really nice) code as you did, but it does not help the OP. This will be a copy and paste for him - and the coding skills and problem solving ability of the OP will not grow. What we should do is to give hints or comments how to solve the task. Thanks for your understanding.
7th Jan 2021, 8:24 PM
Lothar
Lothar - avatar
+ 2
let s = "" for(let i=0;i<10;i++){ if(i%2===0) s += "o" else s += "x" } console.log(s)
7th Jan 2021, 8:08 PM
JaScript
JaScript - avatar
8th Jan 2021, 4:17 AM
Behzod
Behzod - avatar
0
Not like that
7th Jan 2021, 8:20 PM
Defri Chandra
Defri Chandra - avatar
0
X & O must equal 5 and the output true
7th Jan 2021, 8:22 PM
Defri Chandra
Defri Chandra - avatar
0
X & O can't less & more than 5
7th Jan 2021, 8:23 PM
Defri Chandra
Defri Chandra - avatar
0
I stuck bro so i ask here azz
7th Jan 2021, 8:30 PM
Defri Chandra
Defri Chandra - avatar