It does exactly what the var
does with a scope difference. Now it can not take the name var
since that is already taken.
So it looks that it has taken the next best name which has a semantic in an interesting English language construct.
let myPet = 'dog';
In English it says "Let my pet be a dog"