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

December 2025

S M T W T F S
  12 3 4 56
7 8910111213
14151617181920
21222324252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 12th, 2025 07:08 pm
Powered by Dreamwidth Studios