Jump to content
Killersites Community
Sign in to follow this  
webmanz

apostrophe's in JS

Recommended Posts

1. I was wondering why alert argument has only one apostrophe and console log has two in this example below? 

2. Can we say the console log has an argument too?

document.getElementById("secondP").onmouseover=function(){alert('Mouse over second P');
console.log("Log the anonymous Inner function on secondP")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×