• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Quiz

Test your knowledge of JavaScript strings and arrays by answering the following questions.

Questions

  1. Using the same example string, which of these statements would return the word eagle?

    1. test.substring(4,9)

    2. test.substring(5,9)

    3. test.substring("eagle")

  2. What does the join method of an array do?

    1. Allows a new member to join the array.

    2. Combines the array with another array.

    3. Combines the array's elements into a string.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint