
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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