mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 03:32:35 +03:00
24 lines
293 B
HTML
24 lines
293 B
HTML
<html>
|
|
<head>
|
|
<title>Infinite loop</title>
|
|
<link rel="stylesheet" type="text/css" href="tst.css">
|
|
</head>
|
|
<body>
|
|
<h1>Infinite loop</h1>
|
|
<p>Before</p>
|
|
<script>
|
|
|
|
function bar(x) { return (x/2) + 1; }
|
|
|
|
n=1;
|
|
while (n < 3) {
|
|
n = bar(n);
|
|
|
|
}
|
|
|
|
</script>
|
|
</script>
|
|
<p>Afterwards</p>
|
|
</body>
|
|
</html>
|