Solving Knockout JS calculated bindings Syntax Error
Doing calculations on Knockout data-binds might result into a “Uncaught SyntaxError: Unable to parse bindings” error. Solution: use an anonymous function!
As a .Net developer I’m almost addicted to regular expressions to solve common string problems. The advantage of regex is that a lot of tools and languages use them. A drawback is that regex can be very complex and hard to read (documenting them is…