Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript Update Values of Properties

const salaries= {
    Jack : 24000,
    Paul : 34000,
    Monica : 55000
}

// using for...in
for ( let i in salaries) {

    // add a currency symbol
    let salary = "$" + salaries[i];

    // display the values
    console.log(`${i} : ${salary}`);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: JavaScript Precision Problems 
Javascript :: javascript Symbols are not included in for...in Loop 
Javascript :: Export Multiple Objects 
Javascript :: javascript Passing undefined Value 
Javascript :: javascript WeakMaps Are Not iterable 
Javascript :: javascript for...of with Sets 
Javascript :: javascript AutoCorrection in Date Object 
Javascript :: JavaScript Generator Throw Method 
Javascript :: javascript maps 
Javascript :: actionscript round roundnumber 
Javascript :: node js - excecute a child process and exchange message to and from 
Javascript :: ex: javascript Executor 
Javascript :: test driven development javascript 
Javascript :: javasrcipt jpg resize 
Javascript :: change rotation phaser 
Javascript :: phaser place on rectangle 
Javascript :: phaser mixed animation 
Javascript :: .every() Accepts a test function and returns a boolean if all the elements of the array pass the test. 
Javascript :: template literal inside a key in react 
Javascript :: check notification permissopn allow or not 
Javascript :: javascript change IFormFile to base64string 
Javascript :: Get index of child elements with event listener in JavaScript 
Javascript :: what does the ... mean in javascript 
Javascript :: javascript get date value from input 
Javascript :: check if is array javascript 
Javascript :: printing in javascript 
Javascript :: JavaScript HTML DOM Event 
Javascript :: get array from string javascript 
Javascript :: Auto increment in firebase realtime database 
Javascript :: js get array object from local storage 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =