Language: Ruby
Duration:
Difficulty:
Category: Programming
Certificate: Yes
Understanding Comments
Running Ruby Code
Writing Your First Ruby Program
What is Ruby?
Iterating Over Arrays and Hashes with Loops
Accessing and Modifying Elements
Hashes – Key-Value Pairs
Introduction to Arrays
Using Variables in Your Programs
Data Types
Naming Variables
What are Variables?
Methods with Default Parameters
Scope and Local Variables
Passing Arguments and Returning Values
Writing Your Own Methods
Nested Conditions and Logical Operators
Comparison Operators
Else and Elsif
If Statements
Writing Safe and Resilient Code
Debugging Your Ruby Programs
Using begin and rescue for Error Handling
Understanding Ruby Error Types
Breaking and Continuing Loops
The for Loop
The while Loop