-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
I'm wondering, what are the expected results on https://github.com/liammclennan/JavaScript-Koans/blob/master/topics/about_reflection.js#L58-L60
I get empty quotes, but i'm not sure if that is what expected, so I searched a little bit and based on https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name I changed locally:
var A = function() {
this.aprop = "A";
};
var B = function() {
this.bprop = "B";
};
on top of that file to
function A() {
this.aprop = "A";
};
function B() {
this.bprop = "B";
};
And i get "A" as the expected constructor.name value, which makes more sense to me. If I'm wrong or missing sth. could you explain why?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels