Preview:
function Human(fname, lname) {
    this.fname = fname;
    this.lname = lname;
}

var first = new Human('John', 'Doe');
var second = new Human('Jim', 'Halo');

console.log("Name of first human is - " +
    first.fname + " " + first.lname);

console.log("Name of second human is - " +
    second.fname + " " + second.lname);
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter