/    Sign up×
Community /Pin to ProfileBookmark

Scripting symbols

I guess this is in the right place…….

New here, and wondering when I see some script, I sometimes see things like this <!—– or —->

Is that common to java script and what does it mean.

Also, if I get a script from someone on the net, and it has some of this code and some stuff about who created it or copyright stuff…..why when I remove it, it doesn’t work?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisJan 16.2004 — This:
&lt;!--
...
--&gt;

is an HTML comment. You will see it in a script so that the code will be hidden from old browsers and webbots.
×

Success!

Help @h8tobl8 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...