Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ps0305/javascript-algorithms-and-data-structures
:books: Javascript Algorithms And Data Structures
https://github.com/ps0305/javascript-algorithms-and-data-structures
algorithm-scripting algorithms basic-algorithm data-structures datastructures-algorithms debugging es6 functional-programming hacktoberfest hacktoberfest2020 hactoberfest2023 javascript javascript-algorithms object-oriented-programming scripting-language
Last synced: about 5 hours ago
JSON representation
:books: Javascript Algorithms And Data Structures
- Host: GitHub
- URL: https://github.com/ps0305/javascript-algorithms-and-data-structures
- Owner: ps0305
- Created: 2018-07-05T14:56:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T16:32:00.000Z (7 months ago)
- Last Synced: 2024-04-27T17:34:11.396Z (7 months ago)
- Topics: algorithm-scripting, algorithms, basic-algorithm, data-structures, datastructures-algorithms, debugging, es6, functional-programming, hacktoberfest, hacktoberfest2020, hactoberfest2023, javascript, javascript-algorithms, object-oriented-programming, scripting-language
- Language: JavaScript
- Homepage: https://ps0305.github.io/Javascript-Algorithms-And-Data-Structures/
- Size: 49.9 MB
- Stars: 121
- Watchers: 3
- Forks: 38
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## JavaScript is ...
a `dynamic`, `weakly typed`, `prototype-based` language with `first-class functions`.## JS is Dynamic
```js
//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
```js
//Type associated with value, not variable.var a = 1;
a = "one";
a = [1];
a = {one: 1};
```
## JS has 1st Class Functions
```js
//Treat like any objectvar 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](https://user-images.githubusercontent.com/34129569/42721434-90dd4da2-8758-11e8-870e-276cbabef051.png)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](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Basic%20JavaScript)
[Algorithm](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Basic%20Algorithm%20Scripting)
[Data Structures](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Basic%20Data%20Structures)
[Object oriented Programming](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Object%20Oriented%20Programming)
[Functional Programming](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Functional%20Programming)
[ES6](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/ES6)
[Important CS Concepts](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Important%20CS%20Concepts)
[leetcode Problems](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/leetcode)
[HackerRank](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/HackerRank-10-Days-Of-JavaScript-Solutions)
[Coding Interview Prep](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Coding%20Interview%20Prep)
[Blind 75 LeetCode](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/blob/master/Coding%20Interview%20Prep/Blind%2075%20LeetCode.md)
[Projects](https://github.com/ps0305/Javascript-Algorithms-And-Data-Structures/tree/master/Projects)