Jump to content

apostrophe's in JS


webmanz

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")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...