1//pi declare pi= MATH.PI
2var pi = MATH.PI;
3//console
4console.log(pi);
5//screen
6document.write(pi);
1<html>
2 <head>
3 <title>JavaScript Math PI Property</title>
4 </head>
5
6 <body>
7 <script type = "text/javascript">
8 var property_value = Math.PI
9 document.write("Property Value is : " + property_value);
10 </script>
11 </body>
12</html>
1function test(name, birth_year, current_year) {
2 const age = current_year - birth_year;
3 const response = name + " is " + age;
4 return response;
5}
6
7test("jane", 1853, 1941)
1function test(name, birth_year, current_year) {
2 const age = current_year - birth_year;
3 const response = name + " is " + age;
4 return response;
5}
6
7test("jane", 1853, 1941)
1function test(name, birth_year, current_year) {
2 const age = current_year - birth_year;
3 const response = name + " is " + age;
4 return response;
5}
6
7test("jane", 1853, 1941)