Identify the syntax that determines how a new item is inserted into a nested list.

A. if (headLevel > prevLevel) {// Append the list item to the current list} else if (headLevel < prevLevel) {// Start a new nested list} else {// Append the entry to a higher list}
B. if (headLevel === prevLevel) {// Append the list item to the current list} else if (headLevel > prevLevel) {// Start a new nested list} else {// Append the entry to a higher list}
C. if (headLevel > prevLevel) {// Append the list item to the current list} else if (headLevel === prevLevel) {// Start a new nested list} else {// Append the entry to a higher list}
D. if (headLevel !=== prevLevel) {// Append the list item to the current list} else if (headLevel < prevLevel) {// Start a new nested list} else {// Append the entry to a higher list}

Answer: B

Computer Science & Information Technology

You might also like to view...

The two Access filtering commands are Selection and ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

An icon that displays on the Ribbon to indicate the key that you can press to access Ribbon commands

A) ToolTip B) KeyTip C) ScreenTip

Computer Science & Information Technology