Mutant supports variable declaration and reassignment. Let’s see them in action in below examples:
Example 1
let name = "sakamoto";
Example 2
let age = 20;
Example 3
let isCat = true;
puts(isCat);
let isCat = false;
puts(isCat);
Example 4
let array = [1, "sakamoto", true, "cat"];
Example 5
let map = {
"name": "sakamoto",
"age": 20,
"isCat": true,
};