We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10f8f4 commit 6ad84b8Copy full SHA for 6ad84b8
2 files changed
Example/Function/function.js
@@ -0,0 +1,26 @@
1
+
2
+function info(){
3
+ console.log("welcome to codeswithpankaj.com");
4
+}
5
6
+// calling function
7
8
+info();
9
10
+// Function With Parameters
11
12
+function UserInfo(Name,age,height){
13
+ console.log(`My Name is ${Name} and I am ${age} years old and my Height ${height}`);
14
15
16
17
18
+UserInfo("Nishant",12,4.5);
19
20
+// return type
21
22
+function set_tax(){
23
+ return 250;
24
25
26
+console.log(` this is tax {set_tax()}`);
Example/Function/index.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+ <script src="function.js"></script>
+</head>
+<body>
+</body>
+</html>
0 commit comments