Now that you've got the necessary script files and a project directory laid out, let's begin writing some code to confirm that the application works. This code will require all scripts we've saved to be accessible; otherwise we'll see some error messages.
We'll also go over the Web Inspector and use it to interact with our applications. Learning this tool is essential for any web application developer to proficiently debug (and even write new code for) their application.
Add the following code to your
index.html file. Notice that I'm assuming the use of LoDash and Zepto, so you'll want to update the code accordingly:
<!DOCTYPE HTML> <html> <head> <title>Backbone Application ...