Advertisement
Guest User

Untitled

a guest
May 18th, 2017
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (function objects (param) {
  2. param = {
  3. weight: 80,
  4. experience: 1,
  5. bloodAlcoholLevel: 0,
  6. handshaking: true }
  7. if (param.handshaking == true) {param.handshaking = false
  8.  
  9. param.bloodAlcoholLevel += 0.1 * param.weight * param.experience
  10. let param2 = {weight: param.weight, experience: param.experience, bloodAlcoholLevel: param.bloodAlcoholLevel, handshaking: param.handshaking}
  11. console.log(param2)
  12. }
  13. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement