Skip to content

Instantly share code, notes, and snippets.

Avatar
👓
looking for a junior front-end dev job in Tokyo

ShilpiMaurya

👓
looking for a junior front-end dev job in Tokyo
View GitHub Profile
View 2020-programming-challenges.js
//18-09-2020, Thursday
//Find out whether given series is a AP or not
const mathSequenceAP = arr => {
if (!Array.isArray(arr) || !arr.length) {
return null;
}
for (let i = 1; i < arr.length - 1; i++) {
if (arr[i] - arr[i - 1] !== arr[i + 1] - arr[i]) {
View playground.yml
name: Node.js CI
on:
push:
branches:
- master
jobs:
build-test-deploy:
runs-on: ubuntu-latest
steps:
View programming challenges.js
// Problem 1: fizzbuzzChallenge
// write a function that accepts a number and
// 1. returns a string "fizz" if it's divisible by 3,
// 2. returns string "buzz" if divisible by 5,
// 3. returns "fizzbuzz" of divisible by both 3 and 5
// 4. Otherwise returns the input number (if above conditions are not matched)
const fizzbuzzChallenge = num => {
if (typeof num !== "number") {
return null;
View resume.json
{
"basics": {
"name": "Shilpi Maurya",
"label": "Aspiring Front-end Developer",
"picture": "https://avatars1.githubusercontent.com/u/47273243?s=460&v=4",
"email": "meshilpi94@gmail.com",
"phone": "+91-9149235516",
"website": "",
"summary": "Eager to explore, experience and learn from the new challenges with the motive of growth",
"location": {
@ShilpiMaurya
ShilpiMaurya / tdd.js
Last active Sep 1, 2019
Test Driven Development
View tdd.js
const Calculator = {
add: (num1, num2) => {
return num1 + num2;
},
sub: (num1, num2) => {
return num1 - num2;
},
multiply: (num1, num2) => {
return num1 * num2;
}
@ShilpiMaurya
ShilpiMaurya / index.js
Last active Aug 22, 2019
object oriented programming in js
View index.js
// Try edit message
// Object oriented prograaming: 4 principles
// 1. Encapsulation
// 2. Inheritance
// 3. Composition
// 4. Polymorphism
//encapsulation
class Rectangle {
constructor(length, width){
You can’t perform that action at this time.