Help on class assignment
JavaScript
1
Posts
1
Posters
0
Views
1
Watching
-
I have been trying to add the salutation string to p id="salutation" I can't figure it out. I have to use a html and a script separate this is what I have for the HTML Invitation
You are invited to my house for a Cynco de Mayo party May 5, 2014.
Sincerely,
And this is what I have in my .js script so far: "use strict"; function greeting() { var textOne = "Dear"; var name = "John"; var punc = ","; document.write(textOne + name + punc); } function complete() { var yourName = "Gerald Blackmore"; var img = "
"; greeting(); document.write(img); document.write(yourName); } complete();