Logesh Paul
Search
⌃K

Javascript

JavaScript was initially created to “make web pages alive”.
The programs in this language are called scripts. They can be written right in a web page’s HTML and run automatically as the page loads.
Scripts are provided and executed as plain text. They don’t need special preparation or compilation to run.

Utilities

In single line of code! No more! - [https://1loc.dev/](https://1loc.dev/](https://1loc.dev/)
Compatibility table - [https://kangax.github.io/compat-table/es6/]](https://kangax.github.io/compat-table/es6/])
Run a local web server to run JS modules
# Step 1: Install http-server package
npm install http-server -g
​
# Navigate to the directory
$ cd /opt/sites/blog
​
# Launch HTTP server
$ http-server
​
# Launch HTTP server on port 4000
$ http-server -p 4000

Concepts

    • Composability: function inside a function - that is called functional programming to take the advantage of reusability, less code, etc.,
    • JS high-order function: .map(), .filter(), .reduce(), .find()
    • Higher order functions is not same as callback. Pass as an argument to higher-order function.
  • ​Debounce​
Last modified 1mo ago