Skip to content

Instantly share code, notes, and snippets.

View rohitdaryanani's full-sized avatar
🍣

Rohit Daryanani rohitdaryanani

🍣
  • Versent
  • Melbourne
View GitHub Profile
@rohitdaryanani
rohitdaryanani / 0_reuse_code.js
Created March 8, 2017 09:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rohitdaryanani
rohitdaryanani / health.md
Last active July 12, 2016 05:17
Eating and workout recorder

Height - 5'11"

Starting Weight - 217lbs / 98.6kg (226.2lbs / 103kg with clothes)

Ideal Weight - 193lbs / 87kg

To Lose - 29.2 lbs / 13.2kg

Week 1

#Programming Manifesto

##Books Ruby

  • Learn to Program by Chris Pine
  • The Well-Grounded Rubyist by David Black
  • Eloquent Ruby by Russ Olsen
  • Practical Object-Oriented Design in Ruby by Sandi Metz
  • Confident Ruby by Avdi Grimm

Objects

To create a new object, use the new keyword followed by a call to a constructor function. Javascript provides the Object() constructor out-of-the-box:

var toilet = new Object();

Properties

Once you have an object, you can set and get properties on it, like this: