updateTitle method

void updateTitle(
  1. String newTitle
)

Updates the title text

Implementation

void updateTitle(String newTitle) {
  title.value = newTitle;
}