<html>
<title>.map method</title>
<body>
<h1>The .map() method</h1>
<h2>Look at the console</h2>
</body>
</html>
body {
height: 100vh;
background: orange;
text-align: center;
color: white;
-webkit-text-stroke: 1px black;
}
const avengers = ['Thor', 'Iron Man', 'Hulk', 'Black Widow', 'Hawk Eye', 'Captain America'];
avengers.map(avenger => console.log(`${avenger} is an Avenger`))
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.