Javascript (Code not working)

0 Robert Summers · October 9, 2014
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type" type="text/html" charset="utf-8"/>
<title>HTML, CSS and JavaScript</title>
<link rel="stylesheet" type="text/css" href="main.css"/>
</head>

<body>
<script type="text/javascript">

var myarray = new Array("First ","Second ","Third<br/>");
myarray.reverse();
myarray.push("Fourth ", "Fifth<br/>");
myarray.sort();

var string1 = bp.join();
document.write(string1);

</script>
</body>

<html>

Post a Reply

Replies

Oldest  Newest  Rating
0 Robert Summers · October 9, 2014
I see what you mean, sorry. the bp variable was his variable and i changed my variable to a different variable, haha. Sorry and thanks for your help though. 
0 Robert Summers · October 9, 2014
I don't know cause here i was following the push, join and reverse javascript tutorial, it seemed to work the same for bucky.
  • 1

Javascript

107,325 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators