Q:

List some differences between a script and a function

0

List some differences between a script and a function.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

  •  A function has a header whereas a script does not.
  •  A function typically has end at the end of the file.
  •  A function is called whereas a script is executed.
  •  Arguments are passed to functions but not to scripts.
  •  Functions can return arguments whereas scripts cannot.
  •  The block comment is typically in the beginning of a script but 

under the function header.

  •  The scope of variables is different: scripts use the base 

workspace, whereas functions have their own workspaces.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now