+91-9900421568 | manojthetechguy@gmail.com | Github | LinkedIn | Portfolio | Youtube
- Developed Front-end web application for PayPal Merchants for managing their Transactions and Reports
+91-9900421568 | manojthetechguy@gmail.com | Github | LinkedIn | Portfolio | Youtube
// Anagram Check | |
const anagram = (str1, str2) => helper(str1) === helper(str2); | |
const helper = (str) => str.toLowerCase().split('').sort().join(''); | |
console.log('Anagram: ', anagram('Dormitory', 'DirtyRoom')); | |
const getChunkArray = (arr, len) => { | |
const chunkArray = []; | |
let i = 0; |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"os" | |
) | |
type content struct { |
import math | |
class ClassRoom: | |
students = { } | |
mean = 0 | |
stdDeviation = 0 | |
def get_total_students(self): | |
return len(self.students) | |
def getBestTwoTestScores(score1, score2, score3): | |
if score1 >= score2: | |
x = score1 | |
if score2 >= score3: | |
y = score2 | |
else: | |
y = score3 | |
if score2 >= score3: | |
x = score2 |
// Reference: https://levelup.gitconnected.com/learn-redux-by-building-redux-from-scratch-dcbcbd31b0d0 | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<div>Random Count: <span id="count"></span></div> |
var obj = { | |
a: 5, | |
b: 10, | |
add: function() { | |
return this.a + this.b; | |
}, | |
}; | |
console.log('1: ', obj.add()); | |
var another = obj.add; |
MongoDB | |
NoSQL Database - Document Database Type in NoSQL | |
Data is stored in json like syntax | |
Good to use when there is no ton of inter connected relations | |
Database, Collections, Document | |
data/db folder inside MongoDB |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
.outer { | |
background-color: blue; |