Join all elements of an array into a string

A simple example of joining all array elements into a string.
<!DOCTYPE html>
<html>
<head>
   
</head>
<body>

<script>
    
          var vehicles = ["Lamborghini", "Ferrari", "A-10 Thunderbolt", "Titanic", "F-16", "Mi-7", "T-34/85"];
          var vehicleString = vehicles.join(" || ");
    
     console.log(vehicleString);
    
</script>

</body>
</html>

Responses

0 Replies