JavaScript Code Finally Bujha

 

function Person(first, last, age, gender,interests){

	this.name={
		first:first,
		last=last	
	};
	
	this.age=age;
	this.gender=gender;
	this.interests=interests;
	this.bio=function(){
	
		alert(this.name.first+'.'+this.name.last)
	
	};
	
	this.greeting=function(){
	
		alert('Hi! I\'m '+this.name.first+'.');
	}
	
	let person1=new Person('Bob','Smith',32,'male',['music','skiing']);

}

 

It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published. Required fields are marked *