From the course: Data Analytics with Observable
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Solution: Create a working notebook - Observable Tutorial
From the course: Data Analytics with Observable
Solution: Create a working notebook
(upbeat music) - [Instructor] As I promised, I'm going to show you two ways to do this. One way is to create a bunch of named cells and just use the dollar, curly braces to reference those values in the text. So I created this cell here. Let me open up the code. Noun equals pergola. And then I referenced it up here in this text cell using the dollar sign, braces, noun. So that named cell is referenced from here, brought in up here, and ends up being displayed right here. Of course, I did that with all the different types of speech. As you can see, I also included some horizontal line breaks and extra space, just so my reader will focus on the story and not this extra stuff down below. The alternative approach, which I bet those of you who are programmers probably did, is to use a more typical programmer's way of doing this, which is to use a JavaScript data storage element, such as an array. If you created a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.