1.

Which function is used to return a handle to the database?(a) prepareDatabase()(b) showDocCount()(c) executeSql()(d) openDatabase()The question was asked by my school teacher while I was bunking the class.My enquiry is from Web Databases topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct answer is (a) prepareDatabase()

To explain I would SAY: prepareDatabase() function is used to return a HANDLE to database. It is NECESSARY to first create the database. showDocCount() shows the REAL work after creating the database. Syntax of calling a JavaScript function is: function prepareDatabase(ready, error).



Discussion

No Comment Found

Related InterviewSolutions