-
What runs JavaScript outside the browser? Ans: The Node.js runtime environment
-
Name 5 things Javascript can do.
- DOM (Document Object Model) manipulation.
- Form validation and data submission.
- JavaScript can be used to create dynamic user interfaces that update in real-time based on user interaction or other events, such as page scrolling, resizing, and more.
- Javascript can be used to create animations and visual effects on a web page.
- Javascript can be used to interact with APIs to retrieve data from remote servers and use it to update the contents of a web page
-
When was ECMAScript first released? Ans: June 1997
-
How do you log to the console? Ans: By using the "console.log()" function
-
List the tech fields that use JavaScript
- Front-end development
- Back-end development
- Mobile app development
- Game development
- Artificial intelligence and machine learning
- Virtual and augmented reality
-
Differentiate between Statically typed and Dynamically typed programming languages and give examples of languages that fall under each category
- Statically Typed programming languages are those that perform type checking at compile-time, meaning the type of a variable must be explicitly declared before the code is compiled. Examples are Java, C, C++ etc
- Dynamically Typed programming languages are those that perform type checking at runtime, meaning the type of a variable is determined by the value it is assigned at runtime. examples are JavaScript, Python, Ruby etc
-
Differentiate between the JavaScript data types ‘null’ and ‘undefined’
'undefined' is a value that is automatically assigned to a variable that has been declared, but has not been assigned a value yet while 'null' is an intentional non-value, and can be explicitly assigned to a variable as a representation of no value.