var Person = Class.create();
Person.prototype = {
initialize: function(first, last) {
this.first = first || 'Default';
this.last = last || 'Default';
},
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Ok, here are my summary notes for the different ways to create multiple instances of an Object. | |
1. class.create | |
2. constructor function with 'new' | |
3. Object.create | |
4. factory function | |
*/ | |
// 1. ServiceNow class.create . *** object written using Pascal notation (first letter uppercase) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-09-30T12:51:27.632Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
db: | |
# Specify the version of DB you want to run | |
image: mysql:5.7 | |
volumes: | |
# TODO: create a directory "db_data" in the root folder of your installation | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.