Skip to content

Commit

Permalink
Function part with arguments, HTML part
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Jan 10, 2025
1 parent 2008bbe commit e243075
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lesson12/func_call_with_arguments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html>
<head>
<title>Function call: with arguments</title>
</head>
<body>
<h1 id="header">Function call: with arguments</h2>
<script src="func_call_with_arguments.js" type="text/javascript"></script>
<script type="text/javascript">
printArguments();
console.log();

printArguments(1);
console.log();

printArguments(1, 2);
console.log();

printArguments("foo", "bar", "baz");
console.log();

printArguments(true, false);
console.log();

printArguments(null);
console.log();

printArguments(undefined);
console.log();
</script>
</body>
</html>

0 comments on commit e243075

Please sign in to comment.