Search Header Logo
The Modern JavaScript Bootcamp (2019) - The Edit Note Page: Part II

The Modern JavaScript Bootcamp (2019) - The Edit Note Page: Part II

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial guides viewers through setting up a note editing page using JavaScript. It covers loading necessary scripts, extracting note IDs from URL hashes, validating notes, and setting up input fields for editing. The tutorial includes a challenge to wire up input events and provides a solution for handling these events effectively. The focus is on using existing functions, manipulating the DOM, and ensuring data persistence in local storage.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of loading the 'notes functions.js' file?

To initialize the app's database

To load CSS styles for the app

To utilize pre-existing functions for saving and removing notes

To create new functions for the app

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the note ID extracted from the URL?

Using the substring method

Using the parse method

Using the slice method

Using the split method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the note ID from the URL does not match any existing note?

An error message is displayed

The user is redirected to the homepage

The app crashes

A new note is created

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML element is used for the note body to allow multiple lines of text?

TextArea

Input

Span

Div

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial step in the challenge to wire up inputs?

Add a new CSS class

Create a new HTML file

Remove all existing notes

Set up an input event for the title

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should happen when a user changes the note title or body?

The changes are saved automatically

The changes are discarded

A save button must be clicked

The app refreshes automatically

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the remove button in the notes app?

To delete the note permanently

To duplicate the note

To hide the note temporarily

To archive the note

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?