
Discover the foundations of JavaScript programming, from variables and loops to arrays and conditional logic, then apply them to dynamic web pages and a flashcard app.
Explore essential development tools for coding, from cloud versus local environments to writing JavaScript in any text editor. Use free editors like Sublime Text or Notepad++ and test locally.
Explore assignment operators such as +=, -=, *=, /=, and %=, and see how they combine math with assignment to update variables efficiently.
Master conditional statements, including if, else, and else if, to decide actions based on comparisons and control program flow. Note how case sensitivity affects outcomes.
Learners explore while loops in JavaScript, declare a counter outside the loop, and increment inside to avoid infinite loops. They compare while loops to for loops and review practical examples.
Functions are small programs that run only when called. Define them with a name, parentheses, and a curly-brace block, pass arguments, and return results.
Explore JavaScript prompt boxes that collect user input and assign it to variables. See how to display results with document.write or function calls, and why email prompts are discouraged.
Create and handle web forms with JavaScript by creating an HTML form, reading the input by its id on button click, and displaying a result on the page without reloading.
Create a math flashcards app that generates two random numbers (1–10), displays the chosen operation (addition, subtraction, or multiplication), checks the answer, and provides reset and operation toggling.
Install Ruby on Windows with the official Ruby installer and Dev Kit, add Ruby to your system path, and then prepare to write Ruby code in the next video.
Install ruby, verify the version, and set up a get bash terminal with sublime text. Save a hello world Ruby file (.rb) and run it to see the output.
Explore string manipulation in Ruby by treating strings as objects within object oriented programming, and apply methods like downcase, capitalize, reverse, and length to text.
Learn how variables act as containers and Ruby uses lowercase underscores for multiword names. Recognize uppercase denotes classes and distinguish strings from numbers with descriptive naming.
Sometimes Git Bash has issues with gets... to get around them, run your program like this:
winpty ruby program_name.rb
Convert user input from a string to an integer using gets.to_i, then perform arithmetic like number + 10; explore string vs number data types and convert back with number.to_s.
Master assignment operators by using plus equals, minus equals, and other math operators to update variables like age, and apply these patterns to loops and counters.
Learn how while loops run while a condition is true, using a counter to prevent infinite loops, with examples that print numbers 1 through 9 and a cheese joke.
Explore how the each loop in Ruby iterates over ranges and arrays using a block and a variable, following underscore naming conventions. Prints values with puts.
Explore how hashes store key-value pairs with curly braces and the hash rocket, and retrieve values using square brackets. See how hashes handle complex data versus simple arrays.
Learn how to create a getter in a square class to return the side length using an instance variable, showcasing object-oriented programming.
learn how to define a setter and use initialization and a getter in a class to manage a side length, including passing 10 and updating it to 20.
In this course we'll learn the Ruby programming language and the Javascript programming language from an absolute Beginner level all the way to Advanced in no time at all!
This course is aimed at the absolute beginner, you don't need any coding experience at all!
We'll start out by downloading and installing the Sublime Text Editor - for free. This will give you all the tools you need to start writing and running Javascript code.
For Ruby, we'll use a free online development environment so that we can learn web development concepts.
Then, we'll dive into very basic computer science concepts. Things like:
After that, we'll move into more intermediate topics like:
Finally we'll finish up with more advanced topics like:
We'll learn all of those things for both Ruby and Javascript. We'll start with Javascript, and then move over to Ruby in the second half of the course.
Ruby and Javascript are two of the greatest programming languages to learn, and learning has never been this easy!
I'll see you on the inside!
-John Elder