Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Programming Basics
var name = 'Altaf';
var name = 'Altaf';
var something = 10;
//Object or Empty object
var obj = {};
// Object with name value pairs
var person = {
firstName: 'John',
lastName: 'Doe',
age: 50,
eyeColor: 'blue'
//Object with Method
firstName: 'John',
lastName: 'Doe',
age: 50,
eyeColor: 'blue',
fullName: function() {
return this.firstName + " " + this.lastName;
function sayHello() {
//Some code goes here
console.log('Hi, How are you?');
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.