ServiceNow Development Handbook: A compendium of pro-tips, guidelines, and best practices for ServiceNow developers by Woodruff Tim

ServiceNow Development Handbook: A compendium of pro-tips, guidelines, and best practices for ServiceNow developers by Woodruff Tim

Author:Woodruff, Tim [Woodruff, Tim]
Language: eng
Format: azw3
Published: 2018-02-12T05:00:00+00:00


var me = {

name : 'Tim',

age : 30,

coolness : 'Extreme to the max'

};

Let’s take our code from the previous example, which you’ll recall did not modify the coolness variable in-place, and let’s try the same thing using the above non-primitive object. Here’s the code:

var me = {

name : 'Tim',

age : 30,

coolness : 'Extreme to the max'

};

changeCoolness(me);

console.log('I\'m this cool: ' + me.coolness);

function changeCoolness(person) {

var actualCoolnessLevel = 'Total doofus';

person.coolness = actualCoolnessLevel;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.