Help with installing on macOS Catalina

Hi, I am a complete newbie trying to install homebrew on Catalina. I have typed in the command line in the terminal and after I pressed enter, the terminal returned nothing. Here’s the record of several of my unsuccessful attempts. And I have installed the latest version of Xcode 11.
What could be wrong here? Many thanks in advance

Can you open that URL in your browser?

Yes, I can. Returns a long list of codes that start with ‘#!/bin/bash’

I got this fixed by directly using ’ ```
ruby -e “$(curl -fsSL”

and then set the path. Why would that make a difference though?

I have no idea. Good to hear it worked