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 PostThey are probably equivalent to the « ( &#171; ) and » ( &#187; ) characters. If I correctly recall my high school Spanish classes from 30-odd years back, Spanish also uses them.
(Unexpectedly, DaniWeb or *something* processes the HTML character codes, so you get to see them. Also …
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.