Logesh Paul
  • Welcome
  • About
  • đź“–Wiki
    • Productivity
      • My Ultimate Self Guide - For Better Living
      • Finding your Passion, Purpose of Life
      • Great Techniques To Self Mastery
      • Better Yields Best
      • Who is Driving? You (or) Your Mind
      • Goals
      • My Workdesk (Sep 2024)
      • SublimeText Plugins  —  I Use
    • Code
      • Bash
      • Regex
      • Capybara
      • Chrome
      • CSS
      • Git
      • Mac
      • Atom
      • Ruby
      • Slack
      • Husky
      • Zsh
      • Javascript
      • Best Practices
      • What is debounce?
      • Rbenv
      • Brew
      • RVM
    • Design
      • Why do we need a design system?
    • Health
      • Facts about getting fit
      • TDS and its Role in Drinking Water
      • Gut
    • Mind
      • Behaviour
      • Evolving Brain
      • The Law of Wasted Effort
    • Personal
      • Vision and Values
      • Learning From My First Startup
    • Finance
      • 5 Finance Advices From The Ancient Richest City Of The World
      • Interim Dividend
      • Cash Reserve Ratio
      • Dematerialisation
Powered by GitBook
On this page
  • Utilities
  • Concepts
  1. Wiki
  2. Code

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.

PreviousZshNextBest Practices

Last updated 2 years ago

đź“–
Higher Order Function
Debounce