In other languages, a variable assignment looks like var myvar = "something", @myvar = "something", or String myVar = "something".
Clojure does things in a different way. First, Clojure doesn’t call it a variable assignment. It is a var binding, and this idea is a bit different from assignment in other languages.
In Clojure, the syntax is (def var-name var-value).
Advice to coaches
If attendees don’t know what a variable is, please explain briefly.
The difference between my-number and user/my-number would be worth mentioning.
A namespace will have a new binding from Symbol to Var when the def function is used.
Then each Var will have its value.
Also, it would be helpful to talk about global Vars and namespaces.
However, the namespace has its own section, so you don’t need to go into detail.
Try some examples.
Advice to coaches
The main purpose of this lab is to learn how to use Vars after those are bound.
If attendees haven’t studied how to write functions, the lab using functions is optional.
What if you don’t remember that you created a Var? If you want to test if a Var exists, use the resolve function with the Symbol style of the Var name.