Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function objects (param) {
- param = {
- weight: 80,
- experience: 1,
- bloodAlcoholLevel: 0,
- handshaking: true }
- if (param.handshaking == true) {param.handshaking = false
- param.bloodAlcoholLevel += 0.1 * param.weight * param.experience
- let param2 = {weight: param.weight, experience: param.experience, bloodAlcoholLevel: param.bloodAlcoholLevel, handshaking: param.handshaking}
- console.log(param2)
- }
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement