here are the questions i was asked.. Please help Im a little confussed.
6.Describe (3-4 sentences) what this statement does: ("this is foo bar".match(/o/g)||[]).length
7.Write a JavaScript function that takes in a DOM element and returns a count of the number of <a> tags contained within that element (first level count only, non-recursive).