Two interesting and new things I learned from the class are :
2. It ( JS applications) can be easily vulnerable and exploited by the malicious inputs . ( The instructor did not mention/told this ). It was a basic programming boot-camp, so I won't expect him to say this.
But when I saw some of the examples mentioned are so scary !!!.
We can use "typeof" operator to restrict the input types . But its all on developer's head.
Some of the questions : How "+" operator can work on number and string ?
It can pass anything to a function and function won't check the type and JS will return something(what ever it like) !!, its fully developers responsibility to understand the inputs and validate the types of the input before passing.
I think, you can read through below links for more :
I am not sure how will be internals/architecture of the browser in next 10 years .I wish there would be more type and memory safe languages engines and they should replace JS engines. People/developers should write those type and memory safe languages for the browser engines.
Why Rust and Web Assembly ?
WebAssembly - Its not compromising performance and allows to write type safe + memory safe low languages
Rust - Featuring
Looking for your comments and thoughts!