I am new in ES6. I am trying to log a concatenated string (string+spread argument) on console. But, I am unable to concatenate it. Here is the code line:
var arr1 = [1,2,3,4,5];
var arr2 = [6,7,8,9,10];
//below line
console.log("Spreading an array iterable: " + ...arr1);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Day 1: Spread Operator</title>
</head>
<body>
</body>
</html>