Question: I have to find and display a selector from HTML presented in array, this works for me using Jquery:

```
var a = '';
var b = Array.prototype.map.call($('p', a),
 function(e) { return e.outerHTML; });

console.log(b)

```

However I don't want to use Jquery, Id rather use plain Javascript so I tried:

```
a.querySelectorAll('p')

```

Not working. Why is that and what else can I try?

Answer: 
You're using `querySelectorAll` as if it is available in the `String.prototype` object because the variable `a` is an empty string.

Try `document.querySelectorAll('p');`
Try this:

```
document.getElementsByTagName("p")

```

Which will return an array of all `<p>` tags