Exercise on the for-of loop

We will use the for-of loop to search through data and obtain our desired values.

Exercise 1:

Open the developer tools on any website. Locate the first character of all headings, and log the concatenation of the first characters.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.