An example of how you should do the 50+ console examples, aka “playin’ with code” – EDIT 11/20/17 based on the dislikes:
Folks, this is how you learn.. you play around. This is not to TEACH YOU, this is to SHOW you how to play around with code. Yes, it’s sloppy. No, I don’t do thing nicely or perfectly or necessarily even correctly… I want my students to try things, experiment, fail, and try again. That’s the only way to learn.
Original source
9 responses to “50 + examples- Playing with JavaScript”
Thank you, great for brain storming, Awesome 👏
Stop using Java & Javascript interchangeably. They're two different programming languages.
Math.floor(3/4) would do the truncation that "//" handles.
This program was very interesting but I must watch again. Watched and tried to catch up at work but unable to totally concentrate. Will add more time at home. Thanks
gosh is parseInt() really this difficult 😉
no javascript isn't sloppy, you just need to know how to use it properly, answer holding a string plus int 1 is not going to give you an int incremented by 1 it will give you exactly what was given ie a concatenated string. so apologise lol
Thank you
Yes, thanks so much for this, D.I.
I am new to programming and was overwhelmed and pretty frustrated at first because I wasn't getting things right on the first try. Watching this video took the pressure off and changed my mindset and approach. Thanks for reminding us not to be afraid to "make mistakes" – and that experimentation is healthy and "getting it wrong" can be a great way to learn how things work.
This is great, Thanks for recording and posting this D.I.