An assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.
- How to assign values How to assign a value to a variable.
- How to update a value How to update a variable's value.
This exercise deals with cooking a lasagna dish in the oven. The reference implementation (C#) teaches:
- How to assign a value to a variable.
- How to update a variable's value.
Track | Exercise | Changes |
---|---|---|
C# | lucians-luscious-lasagna | None |
Elixir | basics | Introduces binding values rather than assignment |
JavaScript | basics | There is no updating of a variable |
F# | lucians-luscious-lasagna | There is no updating of a variable |
Ruby | basics |