Skip to content

Instantly share code, notes, and snippets.

View sharmasourabh's full-sized avatar
💭
If you wish to make an apple pie from scratch,you must first invent the universe

Sourabh Sharma sharmasourabh

💭
If you wish to make an apple pie from scratch,you must first invent the universe
View GitHub Profile
  1. Javascript is object oriented. Till, ECMAScript 5, no class was available in javascript. You need to play with objects for achieving the class
  2. Due to same above reason, properties of objects(class) could be modified later, which is in contrast to other languages. Like in Java once class is delcared you can not change its properties.
  3. Javascript uses the internal Put method to add new own property on the object. Own properties are different from prototype properties.
  4. Each function is an object. Also, functions are first class Functions. Javascript uses function's internal method call to differentiate it from other type of objects.
  5. Internal method Set is used when a new value is assigned to existing property.
  6. Internal method Delete is called when a delete operation is performed on an object like delete employee.address.
  7. props in object would enumerate all properties including the prototype (for which Enumerable attribute is set to true). Object.keys(object) only returns the array
@sharmasourabh
sharmasourabh / commands.md
Last active February 22, 2019 04:25
Linux download JDK from Oracle using command line wget

RPM

Command

Would create the JDK directory under /usr/java.

wget --no-cookies --no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"https://download.oracle.com/otn-pub/ja va/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.rpm" \
-O jdk-8-linux-x64.rpm