Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2013 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6096111 to your computer and use it in GitHub Desktop.
Save anonymous/6096111 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
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] );
@infomaven
Copy link

This is the base code for the DECIMALIZER script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment