Hi there, quick question. I am reading a book about javascript and the author doesn't seem to like quotes ("") at all, but he loves angled brackets (<<>>). what really strikes me is that it looks like he uses them instead of quotes. FOr example I would say: alert("Hello WOrld!");
and he instead goes alert(<<Hello World!>>);
.
It is the first time I see angled brackets used instead of quotes,I am a bit confused, so I looked at Crockford's conventions but actually he doesn't say anything about that.
What do you guys think? Is it ok to use <<>> and "" interchangeably?
thanks
Violet_82
89
Posting Whiz in Training
Recommended Answers
Jump to PostTry it and find out. Report your findings.
Jump to PostWhat book is this out of? You can not use angle brackets in place of quotes.
Try it:
<html> <head> <title> </title> <script> alert(<<Quote>>); </script> <body> </body> </html>
Then switch the angle brackets to quotes, and see what happens. I have always used the single quotes …
All 6 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
stbuchok
Airshow
416
WiFi Lounge Lizard
Team Colleague
Violet_82
89
Posting Whiz in Training
Airshow
416
WiFi Lounge Lizard
Team Colleague
Fest3er
39
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.