mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
500 B
10 lines
500 B
4 years ago
|
[
|
||
|
{
|
||
|
"description": "Test to re-assign the value",
|
||
|
"code": "let originalValue = unchanging\ntry {\n unchanging = 'new value'\n} catch {}\n\nif (unchanging !== originalValue) {\n throw Error('unchanging value changed !')\n}"
|
||
|
},
|
||
|
{
|
||
|
"description": "Test with to re-assign with another value",
|
||
|
"code": "let originalValue = unchanging\ntry {\n unchanging = 'another new value'\n} catch {}\n\nif (unchanging !== originalValue) {\n throw Error('unchanging value changed !')\n}"
|
||
|
}
|
||
|
]
|