<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
function fn(){
var n = 0;
function m(){
n += 1;
console.log(n);
}
return m;
}
var result = fn();
result();
result();
result();
result();
result();
result();
result = null;
result();
</script>
</head>
<body>
</body>
</html>