I managed to finish my JavaScript console version of BlackJack which I started just over a week ago (see BlackJack V1). I got a little bit lost with the while looping and then needed to define how the player wins or loses but I think it now works as expected. // geektechstuff // BlackJack // … Continue reading BlackJack Part 2 (JavaScript)
Category: Javascript
BlackJack Part 1 (JavaScript)
Looking for a new project in JavaScript that I have not done in Python, I got to thinking about arrays. As JavaScript allows us to generate random numbers and store variables (see “Scissor, Paper, Stone”) it should allow me to also recreate the card game of Blackjack or 21. For more information on Blackjack please … Continue reading BlackJack Part 1 (JavaScript)
Scissor, Paper, Stone (JavaScript)
One of the earlier programs I wrote in Python was Scissor, Paper, Stone. It's an old game that most people learn as a child, the premise of which is; There are two (2) players. Each player must make a secret choice from 3 options (Scissor, Paper or Stone) The players reveal their choice at the … Continue reading Scissor, Paper, Stone (JavaScript)
Accessing A Browser’s JavaScript Console
JavaScript can be written in .js (JavaScript) files but can also be written directly into a web browsers JavaScript Console, which is a great way to see quick results from small bits of JavaScript coding. Today I will be looking at enabling the console within two browsers (Safari and Chrome). Safari To use the JavaScript … Continue reading Accessing A Browser’s JavaScript Console
JavaScript Basics (Part 2)
Continuing on with yesterdays JavaScript learnings, and continuing to make notes for myself so that I can later refer to them: JavaScript uses camel-case and it is recommended that camel-case is used for variable names. e.g. firstName, surName, emailAddress. Like Python, JavaScript can concatenate words and letters whilst dealing with strings. Like Python, JavaScript can use … Continue reading JavaScript Basics (Part 2)
Finally Taking Time To Learn JavaScript (JavaScript)
I first learned about Javascript back in 2003/2004 whilst completing a University course and then briefly touched upon it during my HNC web module in 2016/2017. Since then I've been focusing on Python as my primary language, however I've decided to expand and refresh/learn more JavaScript. Like Python, JavaScript can use variables although unlike Python they … Continue reading Finally Taking Time To Learn JavaScript (JavaScript)
You must be logged in to post a comment.