Result vs. Return
-
In JavaScript,
-
Math.round(6.777777); returns the value 6.
-
now.setDate(now.getDate() + 3); results in the date object now advancing
three days.
-
Note the difference.
-
The same occurs in Perl.
-
Result: $students++;
-
Return: print $students;
-
Some do both, we'll cover these later.
Quotation Marks
Home