F.N.G.
03-21-2003, 02:48 AM
Can you tell, by looking at source, exactly where each line ends?
The following statements are supposed to explain the concept of a "line":
+----------------------------------+
JavaScript Programmer's Reference
+----------------------------------+
A line of script source text is that fragment of script that is placed between two consecutive line terminators...
---
Line terminators separate individual lines of executable code...
----
In general, a line terminator can occur between any two tokens but cannot appear in a token or inside a string literal...
----
Tokens are the actual components that an executable script is built from. They may be reserved words, identifiers, punctuator symbols or literals.
+----------------------------------+
w h a t ?
+
The following statements are supposed to explain the concept of a "line":
+----------------------------------+
JavaScript Programmer's Reference
+----------------------------------+
A line of script source text is that fragment of script that is placed between two consecutive line terminators...
---
Line terminators separate individual lines of executable code...
----
In general, a line terminator can occur between any two tokens but cannot appear in a token or inside a string literal...
----
Tokens are the actual components that an executable script is built from. They may be reserved words, identifiers, punctuator symbols or literals.
+----------------------------------+
w h a t ?
+