1function getMeta(metaName) {
2 const metas = document.getElementsByTagName('meta');
3
4 for (let i = 0; i < metas.length; i++) {
5 if (metas[i].getAttribute('name') === metaName) {
6 return metas[i].getAttribute('content');
7 }
8 }
9
10 return '';
11}
12
13console.log(getMeta('video'));