Computer Science Educators Asked by Dheeraj on August 21, 2021
I am planning to make a free JavaScript online video series. The first chapter covers the Javascript history and its capabilities. Following is a transcript of the video.
I would like it to be reviewed by someone good at JavaScript. Check for the correctness, the accuracy of facts, and any other suggestions or improvements that might seem necessary. I would especially require scrutiny in the ‘abilities’ section of the script to see if the definitions hold true.
JavaScript was created at Netscape Communications by Brendan Eich and his team in 10 days, in May 1995.
Its syntax and functionality were inspired by Java, Scheme, and Self.
Javascript was first named as Mocha, later renamed as LiveScript.
LiveScript was again renamed to JavaScript to gain popularity as the ‘younger brother’ of Java
JavaScript was meant to manipulate web pages by modifying the DOM to show, hide or change content dynamically
Is used for online form submissions and animations.
It is the Defacto client-side scripting language of browsers, a popular choice on servers as well.
ECMAScript is a scripting language specification standardized by Ecma International, it is a set of guidelines to design a scripting language. JavaScript is an implementation of ECMAScript
Javascript is a scripting language since it is interpreted by browsers and there is no intermediate compiled code.
Modern browsers now use JIT compilers to ‘semi compile’ it in order to optimize its execution
Javascript is single-threaded to minimize complexities with concurrency
In browsers and servers Javascript codes are parsed (read) inside an environment called Javascript Engine.
Javascript engine compiles it to machine language and instructs the OS to execute the instructions
Some notable javascript engines are
Abilities
Restrictions placed in the browser for the sake of data safety
Javascript running on the server side have full access to the file system, input devices, and OS functions. it does not follow ‘same-origin policy’
Javascript Capabilities depend on the implementation of the javascript engine and the interfaces provided to it by the environment.
Other languages compile into javascript which is then parsed by javascript engines.
One such notable language is TypeScript which adds strict typing and object orientation.
I think this answer is the second derivative.
Maybe it depends on who are you are targeting with the course. If it's someone who is just graduating from using a browser to writing something in the browser; the student will be completely lost. If it's someone who has most of an undergraduate CS education, including a course on compilers; you are fine.
I'm teaching an introductory course on web tech right now at Ashesi University; and while my students have been programming in python for a while; have taken data structures your description would lose most of them. Part of the answer depends on where you are going. You may need to give some context on the history of the internet. Especially with current college students; they are all digital natives who don't remember a time before browsers and cell phones; so I might start with some basics on the world wide web; and the problem JavaScript and its ilk were meant to solve.
In my class we did a section on early internet evolution that put alot of this in context (one class; where I had guest speakers who worked on building early browsers...I'm a dinosaur too so I know other dinosaurs).
Then the other stuff is good to illustrate the difference. Esp. with node one of the practical things to discuss is since it was an embedded language to start; alot of features people take for granted (say coming from Java) like packages and modules aren't part of the core engine. Those had to be invented so that JavaScript could run in a REPL when node was introduced.
Answered by toddwseattle on August 21, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP