Skip to content

ps0305/Javascript-Algorithms-And-Data-Structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

991c407 Â· Apr 13, 2025
May 2, 2022
Jan 23, 2025
Jan 20, 2025
Oct 7, 2024
Jul 25, 2018
Sep 25, 2019
Dec 28, 2019
Nov 17, 2022
Jun 13, 2020
Nov 22, 2018
May 6, 2022
Aug 29, 2019
Jul 3, 2022
Apr 13, 2025
Feb 7, 2020
Sep 20, 2019
Sep 24, 2019
Apr 4, 2019
Dec 2, 2018
Jun 10, 2019
Nov 13, 2018
May 2, 2022
Jul 5, 2018
Oct 22, 2018
Jun 18, 2022
Apr 4, 2019
Aug 28, 2019

Repository files navigation

JavaScript is ...

a dynamic, weakly typed, prototype-based language with first-class functions.

JS is Dynamic

//Compilation and execution happen together.

var propMap = {
  val: "value", html: "innerHTML"
};

for(var fnName in propMap){
	
  $.prototype[fnName] = (function(prop){
  	return function(){
  	  return this[prop];
  	}
  })(propMap[fnName]);
}

JS is Weakly Typed

//Type associated with value, not variable.

var a = 1;
a = "one";
a = [1];
a = {one: 1};

JS has 1st Class Functions

//Treat like any object

var square = function(x){ return x*x },  //create

  	 mult = function(f1, f2){            // Return
    		return function(n){
      		return f1(n)*f2(n);
    		}
  	 },

  	 bigF = mult(square, square),        // ARG

value = bigF(2); // 16

JS is Prototype Based

image

JavaScript (JS) is a lightweight, interpreted or JIT compiled programming language with first-class functions. Most well-known as the scripting language for Web pages, many non-browser environments also use it, such as node.js and Apache CouchDB. JS is a prototype-based, multi-paradigm, dynamic scripting language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.

Basic JavaScript

Algorithm

Data Structures

Object oriented Programming

Functional Programming

ES6

Important CS Concepts

leetcode Problems

HackerRank

Coding Interview Prep

Blind 75 LeetCode

Projects