Skip to content

Instantly share code, notes, and snippets.

@nairihar
Created April 16, 2018 10:41
Show Gist options
  • Save nairihar/3f278ff7ee9a195e778552317389b39a to your computer and use it in GitHub Desktop.
Save nairihar/3f278ff7ee9a195e778552317389b39a to your computer and use it in GitHub Desktop.
Reactive Programming, medium, sum-example-imperative-2
let n = 2, m = 3;
let t = n + m;
console.log(t); // 5
n = 3;
console.log(t); // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment