1. Which IDE to Choose? As I am completely new to Ruby, initially struggled to set up my environment. So started with repl.com, then moved to VS Code.

Step 1: Install Ruby for VS Code

image.png

Step 2: Install Ruby Solargraph

image.png

Step 3: Install Code Runner

image.png

Now VS Code is ready to execute my first Ruby Script

Step 4: Create a Project Step 5: Create a new file name "exception.rb "

begin
    @value= 6/0
    puts value
    rescue
     puts "handle zero division"
end

Shift+Command+P will open Code runner, Click "Run By Language -> ruby "