TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Minhaj Hussain
NA
86
6.1k
Here i am getting output as undefined, please tell me why
Jan 21 2018 2:05 AM
<script type="text/javascript">
function Employee() {
this.Name="Minhaj"
var getName = function() {
return this.Name;
}
this.PrivGetName=function () {
return getName();
}
Employee.prototype.Publicget=function () {
return this.PrivGetName();
}
}
var obj=new Employee();
alert(obj.Publicget());
//OUTPUT IS UNDEFINED
</script>
Reply
Answers (
4
)
chrome.runtime.sendMessage error “Message length exceeded”
How to start a career as software tester with a QA certi?