Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.91 KB

assignment.md

File metadata and controls

36 lines (25 loc) · 1.91 KB

Assignment

The Concept

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.

What to cover

  • How to assign values How to assign a value to a variable.
  • How to update a value How to update a variable's value.

Exercises

Lasagna cooking

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.

Implementations

Track Exercise Changes
C# basics None
Elixir basics Introduces binding values rather than assignment
JavaScript basics There is no updating of a variable
F# basics There is no updating of a variable
Ruby basics