
Explore JavaScript fundamentals in the first section and Ruby in the second, learning the same concepts in two languages back to back for a deeper, fundamental understanding.
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.
Discover where JavaScript lives on a web page—head, body, or an external file—and how to reference it with script tags and the src attribute to manipulate page elements.
Learn four core ways to display javascript output on a web page: update an element's innerHTML, use document.write, show a window.alert, and log messages to the console for debugging.
Explore JavaScript basics by understanding statements, semicolons, and whitespace, and learn how comments clarify code and how code blocks group actions on web pages.
Explore variables as containers in JavaScript, declare with var, name with camelCase, distinguish strings from numbers, use the assignment operator, and understand case sensitivity.
Explore numbers and math in JavaScript, covering integers vs floats, type inference, basic operators, modulus, order of operations, and using variables and increment/decrement.
Explore assignment operators such as +=, -=, *=, /=, and %=, and see how they combine math with assignment to update variables efficiently.
Learn how comparison operators power conditional statements in JavaScript, using equals, not equals, greater than, and greater than or equal to, with booleans and assignment nuances.
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.
Learn how to use logical operators and, or, and not to extend if-else conditions by evaluating multiple tests and combining conditions.
Master the for loop, using a counter, condition, and increment to print hello world up to ten times and avoid infinite loops.
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.
Explore fizz buzz from 1 to 100 using loops and modulus to print fizz, buzz, or fizz buzz, then refine with if-else logic and for loops.
Arrays are containers that hold multiple items, including strings, numbers, and even other arrays. They use zero-based indexing, support accessing elements with brackets, and can be looped using length-aware iterations.
Demonstrate arrays and multidimensional arrays, including arrays of arrays, accessing nested elements by index, and using length minus 1 to find the last item, with peperoni as an example.
Discover JavaScript objects as key-value containers (like Python dictionaries or Ruby hashes), with properties such as first name, last name, age, and email, accessible via dot notation.
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.
Learn to generate random integers in JavaScript with Math.random and Math.floor, creating ranges between 0 and 10 or 1 and 100 for a math flashcard app.
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.
Wire up the answer button in the math flashcards app, validate input as a number using isNaN, and prepare logic to check whether the entered value is the correct answer.
Define a correct answer as the sum of two numbers, validate input is a number, and use if-else to show correct or incorrect results, with a reset planned.
Create a custom reset button and a new card function to generate fresh math flashcards, clear output fields, and avoid page reloads.
Wraps up a simple JavaScript math flashcards app and shows adding subtraction, multiplication, and division by adjusting the answer logic, reinforcing a solid grasp of JavaScript.
Get started with Ruby by installing tools and setting up a development environment, then learn strings, variables, user input, conditionals, loops, hashes, fizz buzz, and basics of methods and classes.
Download and install the Sublime Text editor and the Get Bash terminal to prepare for Ruby programming, whether you’re on Mac, Linux, or Windows.
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 how puts and print display text in Ruby, showing puts adds a new line while print outputs on the same line, and introducing strings and basic data types.
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.
Discover getting user input with gets and displaying it via puts and print, using Ruby string interpolation and chop to remove the trailing newline.
Sometimes Git Bash has issues with gets... to get around them, run your program like this:
winpty ruby program_name.rb
Explore Ruby math basics by distinguishing integers and floats, using operators like plus, minus, multiply, divide, exponents, and modulus; learn how integer division differs from float division.
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.
Learn how comparison operators like equal to, not equal to, greater than, less than, and their inclusive forms compare numbers and strings to produce booleans.
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.
Master conditional logic with if/else statements in ruby, using input, comparison operators, and multiple branches to control program flow for numbers and strings.
Explore how arrays function as multi-item containers, using zero-based indices, length properties, and nested arrays to store and access numbers, strings, and variables in Ruby and JavaScript.
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.
Build a fizzbuzz program for ruby and javascript that prints 1 through 100, using loops and conditionals to output fizz, buzz, or fizzbuzz when divisible by 3, 5, or both.
Define and name methods in Ruby, then call them to run with passed parameters. Pass variables, interpolate strings, and control program flow to execute code on demand.
Master methods by passing multiple arguments, returning values, and storing results in variables to control output, including lowercase transformations.
Discover how Ruby classes serve as blueprints that create objects, using a factory analogy, and learn to explore string and array classes via the Ruby docs to discover their methods.
Learn how to build a Ruby square class with an initialize method and a side_length parameter, then instantiate with new, set its instance variable, and inspect its state.
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.
Define a square class with perimeter and area methods, computing side length, perimeter, and area, and use a to_s representation to print a formatted report.
Learn how to use attr_accessor in Ruby to automatically create both a getter and a setter, replacing manual definitions for multiple properties like side length and area.
Create a draw method that prints a square of asterisks using the side length. Loop to render top, bottom, and spaced sides, illustrating a square class and object oriented drawing.
Gain lifetime access to over 60 coding courses with a $200 discount bringing price to $49. Get course updates, PDFs, a certificate of completion, and a 30-day money-back guarantee.
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