Javatpoint Logo

i am not undestanding output of this javascipt

By: umesht*** On: Thu Mar 24 16:38:53 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
<html>
<body>
<script>
function emp(id,name,salary){
this.id=id;
this.name=name;
this.salary=salary;

function changeSalary(otherSalary){
this.salary=otherSalary;
}
}
e=new emp(103,"Sonoo Jaiswal",30000);
document.write(e.id+" "+e.name+" "+e.salary);
e.changeSalary(45000);
document.write("<br>"+e.id+" "+e.name+" "+e.salary);
</script>
</body>
</html>
Up0Down