Skip to content

Instantly share code, notes, and snippets.

Steven B. Combs' Git stevencombs

Block or report user

Report or block stevencombs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PrototypePractice.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Prototype Practice - Objects) assignment
// Dr. Steven B. Combs, coding novice
function Cat(name, breed) {
this.name = name;
this.breed = breed;
}
// Cat Objects
View GettingINtimate.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Getting IN-timate) assignment
// Dr. Steven B. Combs, coding novice
var nyc = {
fullName: "New York City",
mayor: "Michael Bloomberg",
population: 8000000,
boroughs: 5
};
View IDPlease.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (I.D. Please and Know Thyself) assignments
// Dr. Steven B. Combs, coding novice
var anObj = { job: "I'm an object!" };
var aNumber = 42;
var aString = "I'm a string!";
// typeof identifies the type from an object, number variable or string variable
console.log(typeof anObj); // will print "object"
View LiterallySpeaking.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Literally Speaking) assignment
// Dr. Steven B. Combs, coding novice
// Object with method (function) using Literal Constrution
var james = {
job: "programmer",
married: false,
speak: function() {
console.log("Hello, I am feeling great");
View FunWithFunctions.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Fun with Functions) assignment
// Dr. Steven B. Combs, coding novice
// Constructor object notation
function Person(job, married) {
this.job = job;
this.married = married;
this.speak = function () { // Object with function (or method when a part of an object)
console.log ("Hello!");
View AnObjectiveReview.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (An Object Review) assignment
// Dr. Steven B. Combs, coding novice
// Create Object Template
function Person(job, married) {
this.job = job;
this.married = married;
}
View FindSpecialSomeone.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Findng the Special Someone) assignment
// Dr. Steven B. Combs, coding novice
var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: "bob.jones@example.com"
};
View ListingEveryone.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (ListingEveryone) assignment
// Dr. Steven B. Combs, coding novice
var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: "bob.jones@example.com"
};
View DisplayingPeople.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Displaying People) assignment
// Dr. Steven B. Combs, coding novice
// Create an address book from objects
// bob object
var bob = {
firstName: "Bob",
lastName: "Jones",
View Methods.js
// Javascript Getting Started with Programming
// A Codecademy Javascript (Methods) assignment
// Dr. Steven B. Combs, coding novice
// Radius Function
function Circle (radius) {
this.radius = radius;
this.area = function () {
return Math.PI * this.radius * this.radius;
};
You can’t perform that action at this time.