Thanks bhaiya ! aise hi small small project se humara logic building hga, and love your explanation
@piyushgargdev Жыл бұрын
Most welcome 😊
@arghamallick2126 Жыл бұрын
Very nice.. I am currently leaning js. This video is helpful. 😍
@piyushgargdev Жыл бұрын
Glad it was helpful!
@knightrider77624 ай бұрын
VERY NICE EASY TO UNDERSTAND VERY HELPFULL THANKS PIYUSH KEEP DOING IT
@Bajpai2162 күн бұрын
You are best ❤❤
@shubhamaths Жыл бұрын
Thank You so much vai ❤️. I loved the winning logic ❤️ very simple and understandable. ❤️
@arpitsahu968 Жыл бұрын
I have a doubt in current player if else condition please explain me ...... current player to x assign kr diye hai to hr br wo x hi hona chaiye click m to O kaise bnra hai wo
@RaniSingh-kd3vq8 ай бұрын
currentPlayer = currentPlayer === "X" ? "O" : "X"; due to this ternary condition 0 aa rha hai. It is checking if the current player is X then the next would be 0 or else X. Read about TERNARY OPERATOR in javascript.
@abhishekkumaryadav10882 ай бұрын
Thanks bro
@abhishekgaimukhe3248 Жыл бұрын
Sir onClick property is not working with Square component ? Can you help
@piyushgargdev Жыл бұрын
Change onClick to onclick (all lower case)
@BalebalerussianАй бұрын
bro i am not able to think the logics like u after learning the js syntax.can u give me the soln for it
@monstergaming583 Жыл бұрын
Sir how to learn JavaScript
@piyushgargdev Жыл бұрын
Best way is to learn and build many projects using Javascript. More you build the more you master it.
@madhav007 Жыл бұрын
can we also style the text written by document.write() ?
@piyushgargdev Жыл бұрын
Yes why not, you can even code a custom container to show winner and reset the game. Cheers 🥂
@madhav007 Жыл бұрын
@@piyushgargdev ok thanks
@latifaloneyb3451 Жыл бұрын
Mast hai sir
@kumar_sanjeevdutta10694 ай бұрын
Good
@latifaloneyb3451 Жыл бұрын
Sir HTML ka pura course
@siddheshpatel6933 ай бұрын
There Is A small Bug in the code and fix for it simple just change if to else if and it works fine. if(!array.some((e) => e === null)) to => else if(!array.some((e) => e === null)) . The Bug Get triggers when last cell is press one on the right Conner and all the cell are full it results shows draw even X or O is winning ; Bro Love Your Teaching , Learnt From U , Just Helping , Might Help Someone