Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2013 20:10
Show Gist options
  • Select an option

  • Save anonymous/6096111 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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