In Chrome console, also test in edge and firefox
5.toFixed(2);
get
Uncaught SyntaxError: Invalid or unexpected token
in chrome.
SyntaxError: identifier starts immediately after numeric literal
in firefox.
Expected ';'
in edge.
But code below
5.1.toFixed(2);
(5).toFixed(2);
is ok in all three browsers above.