Quoting
Single quotes and double quotes behave differently in Bash, which trips people up coming from most other languages. Inside single quotes, everything is completely literal — no variable expansion happens at all. Inside double quotes, a $name is still expanded to its value.
name="world" echo 'Hello, $name!' echo "Hello, $name!"
Hello, $name! Hello, world!
Command substitution
$(command) runs command and substitutes its printed output right there, as text — this is how you capture the result of one command to use inside another, since there's no other way to get a "return value" directly out of an arbitrary command.
Next: exit codes — the number every single command finishes with, and how it's checked.
Practice exercise
Given word="Bash", print "$word is literal" using single quotes so $word doesn't expand, then print "$word is expanded" using double quotes so it does.