🚧 施工中
Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ ⟩ vs. decimal point
dot notation (.):refers to an object's member.
decimal point:used for number literals.
replit:
// ⭐️ differantiate "dot notation" from a "decimal point" // • method 1: use "white spaces" 77 .toExponential(), // (an extra) space 77 // new line .toExponential(), // • method 2: use (...) (77).toExponential(), // (recommended) ⭐️ // • method 3: use explicit "." 77..toExponential(), // 77. === 77.0 77.0.toExponential(), // 0 is optional
token ⟩ dot (.)
⟩
object's member
number literal