What are the keywords to define a variable and a function in-00123
This subjective question is related to the book/course vu bnk603 Consumer Banking. It can also be found in vu bnk603 Mid Term Solved Past Paper No. 1.
Question 1: What are the keywords to define a variable and a function in JavaScript?
Answer:
- "var" is the keyword used to define a variable in Javascript e.g var a;
- "function" is the keyword to define a function in javascript e.g function myfunction()