I understand what the difference is between a function expression and a function declaration but how are they different when it comes to the reference of a class? Like where can the below someFunction be used inside the class and where can it not? Which class can be instantiated where?
class xyz {
someFunction(){
// Function code
}
}
vs
class xyz {
var someFunction = function(){
// Function code
}
}