new js

Nov. 22nd, 2016 01:30 pm
juan_gandhi: (VP)
const x = {
  get y() { return "I am y of x" }
}

println(x.y)
juan_gandhi: (VP)
it's amazing
juan_gandhi: (VP)
s0.toUpperCase().contains(s1.toUpperCase)


guess what will happen
juan_gandhi: (VP)
we have a home-brewed js function, textOf(element), that extracts the text contents of an element. And why, oh why, did not I make it idempotent? So, in one place I was writing stuff like x=textOf(something), and further down return textOf(x).

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10111213141516
17181920212223
24252627282930
31      

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 6th, 2025 10:01 am
Powered by Dreamwidth Studios