#native_company# #native_desc#

Setting up the code

Let's get physical

Sometimes, nothing beats holding a copy of a book in your hands. Writing in the margins, highlighting sentences, folding corners. So this book is also available from Amazon as a paperback.

Buy now on Amazon

Open up the mnist folder in the demo code folder.

├── data.js             (1)
├── helper.js           (2)
├── index.html          (3)
├── start.js            (4)
├── cnn-completed.js    (5)
├── dense-completed.js  (6)
└── ui.js               (7)

As usual, we have a start.js file this is where you will add your code. If you get stuck, check your code against either the cnn-completed.js file or the dense-completed.js depending on where you are in this chapter (it will be obvious).

There are some other files of interest. data.js has code that sources and sets up the data to be used in our MNIST application. helper.js has various helper functions we will use. There is also a ui.js file, this is the user interface code, which will do the work of drawing lines and text on the screen. We won’t be touching the ui.js file or explaining its contents. We are using a library called p5.js[1] to create our user interface.

Open the index.html as we taught in the setup-instructions lecture and then open the console in the browser, this is where the messages will go.

Advanced JavaScript

This unique course teaches you advanced JavaScript knowledge through a series of interview questions. Bring your JavaScript to the 2021's today.

Level up your JavaScript now!