Skip to content

Instantly share code, notes, and snippets.

@geethanga
Created December 16, 2019 09:46
Show Gist options
  • Save geethanga/1f7ff7a5688528bc20be8859dbd9c4ec to your computer and use it in GitHub Desktop.
Save geethanga/1f7ff7a5688528bc20be8859dbd9c4ec to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/yeleqiy
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
for (var i = 1; i <= 5; i++){
setTimeout(function(){
console.log(i);
}, i*1000);
}
console.log(i + 6);
</script>
<script id="jsbin-source-javascript" type="text/javascript">for (var i = 1; i <= 5; i++){
setTimeout(function(){
console.log(i);
}, i*1000);
}
console.log(i + 6);</script></body>
</html>
for (var i = 1; i <= 5; i++){
setTimeout(function(){
console.log(i);
}, i*1000);
}
console.log(i + 6);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment