Home » HTML » Html miscellaneous » Question
  1. Which function is used to return a handle to the database?
    1. executeSql()
    2. openDatabase()
    3. prepareDatabase()
    4. showDocCount()
    5. None of these
Correct Option: C

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).



Your comments will be displayed only after manual approval.