Language Docs
Variables
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; putf(isCat); let isCat = false; putf(isCat); Example 4 let array = [1, "sakamoto", true, "cat"]; Example 5 let map = { "name": "sakamoto", "age": 20, "isCat": true, };
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;
putf(isCat);
let isCat = false;
putf(isCat);
Example 4
let array = [1, "sakamoto", true, "cat"];
Example 5
let map = {
"name": "sakamoto",
"age": 20,
"isCat": true,
};