<script type="text/javascript" src="my-script.js"></script>
<script type="text/javascript">
// our statements go in here
</script>
var myNumber, myString, anotherNumber = 12, anotherString = 'Hello world!';
var myNumber;
var myString;
var anothernumber = 12;
var anotherString = 'Hello world!';
myString = 'Hello everyone!';
/* a multi-line comment oh yeah */
// a single line comment
x = 3;
y = x * 3; // a single line comment after a statement!
function myFunction() {
// my statements run here
console.log('my first function!');
}
myFunction();
var myFunction = function(){
// my statements run here
console.log('my first function!');
};
myFunction();
document.write('this will be written to screen');
alert('this will pop up an alert');
prompt('this will ask the user for a prompt and return the value');
var myElement = getElementByID('my-element-id');
myElement.innerHTML = "whatever HTML I want to assign";
* title* your name* content: a poem
* external style.css document
* prompt user to enter word for each span tag* replace HTML within span tag with the user's response