We would like to know how to join Array elements with double quote.
<!DOCTYPE html>
<html>
<body>
<script type='text/javascript'>
<!--from w w w . j av a 2 s . c om-->
var arr = ["one","two","three","four"];
var str = '"' + arr.join('","') + '"';
document.writeln(str);
</script>
</body>
</html>
The code above is rendered as follows: