Difference between usage: tt.map and tomtom.L.map

what is the difference between using tt and tomtom.L in calling functions as tt returns error when used. for example the code below from the documentation is showing the error: tt is undefined.

map.addControl(new tt.GeolocateControl({ positionOptions: { enableHighAccuracy: true }, trackUserLocation: true }));

You are mixing two versions of the SDK.
tomtom.L was used in v3-v4 and tt is used for the current SDK v5. When reading docs pay attention on which SDK version are you looking at.