Prithvi Anantharaj
  • Home

Prithvi Anantharaj

Closures

3/7/2017

 
Inner functions having access to outer function's variables is called a closure. 

A Closure has three scope-chains, it has access to: 
  1. Its own scope
  2. The outer function's variables
  3. Global variables
Basic Closure Example: 

    

Recursion in Javascript

2/26/2017

1 Comment

 
A simple definition of Recursion is calling a function on itself. 

Recursion follows the divide-and-conquer method, where the problem is divided into
​sub-problems, solving the sub-problems and combining them with the final result.

Structure of a recursive function includes one or more base cases and recursive cases.
Base Case:  Inputs for which the function produces the result without recurring.
Recursive Case: Inputs for which the program calls itself.
​Add numbers ranging from 1 to 100 without using loops.

    
1 Comment

Command Line Interface

7/6/2016

0 Comments

 
Familiarize yourself with CLI commands. Can't stress this enough, these are very helpful and you'll be using it on a day-to-day basis. I'm in love with these commands, definitely a productivity booster. 

Interested to learn more on CLI? You can find it here.
0 Comments

Ready to get started?

6/29/2016

1 Comment

 
First-up, make sure you're setup is ready. 
​
Basic setup: 
  1. Open a GitHub Account
  2. Install Homebrew 
  3. Install Git 
  4. Install Node.js 
  5. Install Sublime Text , use plugins via package manager to increase your productivity. 
1 Comment

All Things Javascript

6/29/2016

1 Comment

 
I'll be documenting everything related to Javascript. From Basic Javascript to frameworks and everything in-between. It's going to be a fun ride!
1 Comment

    Archives

    March 2017
    February 2017
    July 2016
    June 2016

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home