Echo JS 0.11.0


jklu comments

jklu 42 days ago. link 2 points
Not sure what the aim of these posts is.

Looking at your last few posts you seem to be focused on showing that python is better than JS.

If you want to convince people of your skills then I'm not really impressed as you don't show the correct way of doing it in JS.

If you need bignumber support in JavaScript one can use something like

Apparently it's not too much of an issue in JS or else somebody would have fixed the specs.
jklu 44 days ago. link 1 point
just out of curiosity: why do you retain the even values and sum them up later while you are only interested in the sum ?

let c = 0;
let a = 1;
let b = 2;
let sum = 0;
while (c < 4000000) {
  c = a + b;
  a = b;
  b = c;
  if (c % 2 == 0) {
    sum += c;
jklu 44 days ago. link 1 point
Ok, you're trolling right ? ;-)

First of all, you don't need to create the arrays
(neither in python nor in javascript)

Secondly a string reverse in javascript can be as easy as 
(which is a bit more readable than the Python shorthand version ;-))

Lastly why would you convert to strings ?

var y = 0;
for (let i = 100; i <= 999; i++) {
  for (let k = 100; k <= 999; k++) {
    let x = k * i;
    let result = 0;
    let candidate = x;
    while (candidate > 0) {
      let remainder = x % 10;
      candidate = Math.floor(candidate / 10);
      result = result * 10 + remainder;
    if (x == result && x > y) {
      y = x;
jklu 44 days ago. link 3 points
I haven't read the thread, nor do I know any of the people involved, but titles like these sound like they come from kindergarten. People can't win an argument and therefore start calling each other names. Bit sad imho..
jklu 97 days ago. link 1 point
reads a bit like a sales pitch
"now with blockchain"
jklu 113 days ago. link 1 point
The regular expression part of this is rather small.
Most of the article talks about mapping the fields to US states, cities and zipcodes.
Question is: do you want to maintain those yourself ? (and load them all client side ;-))

Alternatively one could use:

or if you only need the US:

and there are probably many more ;-)
jklu 304 days ago. link 1 point
Bonus point for click-bait title.
Personally Clojurescript reminds me of Lisp.