The structure of your functions indicates that function c is nested within function b, impacting the scope during execution. To access function c, you must first call function b to reach it. Unfortunately, with your current code, directly accessing function c is not possible.
However, the provided code snippet demonstrates a way to properly call function c, which in turn calls function a:
function a() {
console.log("i am a")
}
function b() {
this.c = function() {
//call function a here
window.a();
}
return this;
}
b().c()