Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Cyanite85578y@Krokoklemme
In my defence it's past midnight, and that does look alot like Java. X.x -
@Cyanite maybe because it's JavaScript :P
And what I'm curious about now: why is the reverse function highlighted as a keyword -
QCat8368y@Krokoklemme it is not highlighted like a keyword, keywords are here italized, reverse is not.
-
var answer = PARAMETERS;
barista.request(yourDrink, answer);
-------
^
barista invalid request: wrong answer!
That's right, I got a little bit excited.
var answer = parameters; -
Chefren1138y@Krokoklemme It seems to be because it is a variable that contains a function, just as the method in the object is highlighted for the same reason... I don't know which "color scheme" he's using on his chalk editor, but it looks nice. :)
-
@Desmond Well, what's the input he requires from your? It's a parameter.
In this case it's inside a function request.
So you tell him: "coffee black"
In which case you pay for you coffee.
If you tell him: "coffee black. Secret word: parameters", it's free.
Exercise: be clever enough to use a functional loop (or recursion) as the parameter.
Related Rants
Code town....
undefined
favourite
coffee