---
title: "Mayank Chandola (@mayank) | Hashnode"
description: "Mayank Chandola (@mayank) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@mayank"
---

@mayank

# Mayank Chandola

@mayank · Munich, Germany · Joined October 2015

## Comments

[Switches off all the remote stylesheets, so you can see how you page looks with only inlined CSS. (function() { var styles = document.querySelectorAll('link\[rel=\\'stylesheet\\'\]'); for (var s = 0; s < styles.length; s++) { styles\[s\].mediax = styles\[s\].media; if (styles\[s\].media === 'only x') { styles\[s\].media = styles\[s\].mediax; } else if (styles\[s\].media !== 'print') { styles\[s\].media = 'only x'; } } })();](https://hashnode.com/forums/thread/whats-your-favorite-javascript-snippet/comment/57bc9cba93309a25047c5ec2)

Comment · Thread · Aug 23, 2016 · 10 · [What's your favorite JavaScript "Snippet"?](https://hashnode.com/forums/thread/whats-your-favorite-javascript-snippet)

[Awesome work @jakeforaker ! Send a PR to mern-starter after adding a link to your story in readme.](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3/comment/57381de1efdf90345d75b863)

Comment · Article · May 15, 2016 · 2 · [Deploying MERN to Heroku (success)](https://hashnode.com/posts/deploying-mern-to-heroku-success/5737b4e8911fe184eb43bbb3)

[@nishu 😃](https://hashnode.com/forums/thread/does-mern-provide-any-generators-for-adding-a-new-api-or-is-it-manual-if-its-manual-how-can-we-do-it/comment/5731afacba42a3a7a574181a#reply-5731b052b9ddfcbec8211dee)

Reply · Thread · May 10, 2016 · 1 · [Does MERN provide any generators for adding a new API or is it manual? If it's manual how can we do it?](https://hashnode.com/forums/thread/does-mern-provide-any-generators-for-adding-a-new-api-or-is-it-manual-if-its-manual-how-can-we-do-it)

[Currently mern-cli has generators for components(dumb, functional, container), models, routes, controllers. merng dumb <componentname> //Generate a dumb React component merng functional <componentName> //Generate a functional component merng container <componentName //Generate a React component and connect to Redux store merng route <routeName> //Generate an Express route and corresponding controller merng model <modelName> //Generate a Mongoose Model merng fullstack <modelName> // Generate a dumb component, Express route, controller and Mongoose Model](https://hashnode.com/forums/thread/does-mern-provide-any-generators-for-adding-a-new-api-or-is-it-manual-if-its-manual-how-can-we-do-it/comment/5731afacba42a3a7a574181a)

Comment · Thread · May 10, 2016 · 3 · [Does MERN provide any generators for adding a new API or is it manual? If it's manual how can we do it?](https://hashnode.com/forums/thread/does-mern-provide-any-generators-for-adding-a-new-api-or-is-it-manual-if-its-manual-how-can-we-do-it)

[salary variable inside the IIFE will be hoisted so it's value will be undefined at the first console.log For simplicity you can run this in your console. var a=5; function x() { console.log(a); var a=3; } x();](https://hashnode.com/forums/thread/immediately-invoked-functions-in-javascript/comment/572a06feab7981935efc6c0e)

Comment · Thread · May 4, 2016 · 7 · [Immediately invoked functions in javascript.](https://hashnode.com/forums/thread/immediately-invoked-functions-in-javascript)

[I use AVA as a test runner. Read my answer on AVA.js](https://hashnode.com/forums/thread/whats-your-test-environment-for-es2015-node-applications/comment/5728b8c5ab7981935efc6afe)

Comment · Thread · May 3, 2016 · 5 · [What's your test environment for ES2015 node applications?](https://hashnode.com/forums/thread/whats-your-test-environment-for-es2015-node-applications)

[Thanks for answering!](https://hashnode.com/forums/thread/ask-anything-to-survivejs/comment/5c45f8c90347fda2566c97d2#reply-5c45f8c90347fda2566c97d4)

Reply · Thread · Apr 29, 2016 · [Ask anything to SurviveJS](https://hashnode.com/forums/thread/ask-anything-to-survivejs)

[Do you think bundling is relevant after HTTP/2 ?](https://hashnode.com/forums/thread/ask-anything-to-survivejs/comment/5c45f8c90347fda2566c97d2)

Comment · Thread · Apr 29, 2016 · [Ask anything to SurviveJS](https://hashnode.com/forums/thread/ask-anything-to-survivejs)

[Blogs 2Ality MDN Ponyfoo Getify Alistapart Books You don't know js Exploring ES6 Understanding ES6](https://hashnode.com/forums/thread/what-are-some-good-intermediate-javascript-resources/comment/57223105898574fd9ca18722)

Comment · Thread · Apr 28, 2016 · 3 · [What are some good intermediate JavaScript Resources?](https://hashnode.com/forums/thread/what-are-some-good-intermediate-javascript-resources)

[Yup.. saw it! @carloscuatin](https://hashnode.com/forums/thread/whats-your-preferred-redux-infrastructure/comment/571928fe7dab2d7f58a5d2c4#reply-571e68b685916079574f0322)

Reply · Thread · Apr 25, 2016 · 1 · [What's your preferred Redux infrastructure?](https://hashnode.com/forums/thread/whats-your-preferred-redux-infrastructure)
