This might help
If you want to change Test, use var not val. Unless you want to create a new version of Test, don’t use var or val again. If you want Test to be consistent both inside and outside a {} block, use var or val to declare it outside the block.