Created
July 27, 2013 20:10
-
-
Save anonymous/6096111 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hundrs = { | |
1: 0.02, | |
2: 0.03, | |
3: 0.05, | |
4: 0.07, | |
5: 0.08 | |
}; | |
console.log('This code returns keys only'); | |
for (var i in hundrs) { | |
console.log(i); | |
} | |
console.log(' Now getting values. '); | |
for (var i in hundrs ) { | |
console.log( hundrs[i] ); | |
} | |
console.log(' Now getting value for index 3'); | |
console.log( hundrs[3] ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the base code for the DECIMALIZER script