Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  21] [ 6]  / answers: 1 / hits: 31195  / 13 Years ago, thu, september 22, 2011, 12:00:00

I searched through the internets but could not find a relevant search criteria so I thought this would be the best place to ask.



I have a JS statement saying



document.location.hash = this.slug = this.sliceHashFromHref(href)


How does this work??


More From » javascript

 Answers
192

It gets evaluted from right to left. i.e.



document.location.hash = this.slug = this.sliceHashFromHref(href)


means the output/value of this.sliceHashFromHref(href) is assigned to this.slug and then to document.location.hash.


[#89981] Tuesday, September 20, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
milo

Total Points: 62
Total Questions: 99
Total Answers: 97

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
;