Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function value(v)
- {
- if(v>19)
- return 2*Math.abs(v-19);
- else
- return 19-v;
- }
- console.log(value(77));
- console.log(value(7));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement