Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created July 10, 2020 16:19
Show Gist options
  • Save sandrabosk/79e74c4f633a6dea487565acaf61ddfa to your computer and use it in GitHub Desktop.
Save sandrabosk/79e74c4f633a6dea487565acaf61ddfa to your computer and use it in GitHub Desktop.
  1. Create a function declaration sayMyName() that receives the string argument and returns The name is ______. Try to invoke this function before it is created (a couple of lines in code before you declare it). Are you able to see the output?
  2. Create a function expression getStudentData() that receives three arguments: name (string), age (number) and city (string) and returns Student ____ (name) is ___ years old and from ______ (city).. Try to invoke this function before it is created (a couple of lines in code before you declare it). Are you able to see the output?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment