Uncaught TypeError: c is not a function

I want to get data from table by following javascript code.

function getData() {
	var allData = Backendless.Persistence.of( 'inq_tb' ).find();
	for(var i = 0; i < allData.data.length; i++) {
        console.log("user name = " + restaurants.data.name);
    }
}

But i am getting this error
Uncaught TypeError: c is not a function

How can i get data from table and solve this error?
Thank you.

Where did the reference to “restaurants” come from?

is there a stack trace for the error?

Its not restaurants. It is allData. Still getting same error.


function getData() {
	var allData = Backendless.Persistence.of( 'inq_tb' ).find();
	for(var i = 0; i < allData.data.length; i++) {
        console.log("user name = " + allData.data.name);
    }
}

Is there a stack trace?

What is that?

This will help: https://developer.chrome.com/devtools/docs/javascript-debugging

Thanks. I will check it out.