<html>
<head>
<script>
function someFunc() {
let num = 007; // local variable.
document.writeln(num);
}
// calling the function
someFunc();
/*
trying to access the variable
outside its scope
*/
document.writeln("/");
document.writeln(num);
</script>
</head>
<body>
<!-- HTML body -->
</body>
</html>