JRS: In article <1147528609.930345@athnrd02>, dated Sat, 13 May 2006
16:56:51 remote, seen in news:comp.lang.javascript, vagos
<va***@freemail.gr> posted :
xxx(a,b) {
if (a < b){
self.scrollbars = true;
} else {
self.scrollbars = false;
}
}
That could be better coded as
function xxx(a, b) { self.scrollbars = a < b }
and you could include return to discover the result. But it will not
work any better.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.