Introduction to Javascript Flashcards
What is the full name of the book and in which year this book was released?
Javascript the definite guide. Seventh edition. Master the world`s most used language | 2020
Define the most important techical aspects of Javascript.
JavaScript is a high-level, dynamic, interpreted language that is well suited for object-oriented and functional programming styles. It’s variables are untyped and it’s syntax is loosely based on Java but otherwise unrelated to the language. It derives its first class functions from Scheme language and its prototype based inheritance from Self language.
Explain the concept of a ‘dynamic programming language’.
Dynamic programming language has the capability to run various programming concepts at runtime whilst other languages need to compile the code first. Here are the key characteristics of dynamic programming languages:
- dynamic variables
- runtime binding of variables.and methods aka the code can change itself during runtime
- reflection and introspection aka the code can change and generate new executable code
- advanced programming constructs like closures, first-class functions and prototype based inheritance
Why JavaScript is called ECMAScript?
Because Sun Microsystems (now Oracle) registered JavaScript as a trademark back in the day. Netscape (now Mozilla) asked European Computer Manufacturers Association (ECMA) to standardise the language. As it was not possible to use a registered trademark as an official name the language was named as. ECMAScript in the documentation.
The name of the first web browser and at what year it was released and by who?
WorldWideWeb which was later renamed to Nexus. Released in 1990 by CERN (European Centre for Nuclear Research) scientist Tim Berners-Lee
In what year ES5 was released?
2010
What version of JavaScript was compatible with all web browsers on 2020?
ECMAScript 5 aka. ES5
In which year ES6 was released and what were it’s two major features?
2015
classes and modules
These major features uplifted JavaScript to become a general purpose language capable of building large-scale applications.
Describe the naming logic of versioning after ES6.
EcmaScript + the release year eq. ES2016, ES2017 and so on.
How to turn off the pre-ES5 mistakes?
By using ‘use strict’ directive
What JS features turn on ‘use strict’ automatically in their contexts?
Using classes and modules.
What JS core language does not include when compared to many other languages?
- input
- output
- networking
- storage
- graphics
In which year Node become available;what it can do compared to the JS core language API; for.what is it commonly used?
- 2010
- read and write files, make and serve HTTP requests, send and receive data over network.
- For implementing web servers and for writing utility scripts as an alternative to Shell
Describe JS’s most typical scenario for input and output?
User is giving input via mouse and keyboard and receiving output via CSS and HTML.
JavaScript’s typing discipline in three words.
weak
duck
dynamic