Merge 0ae1188276
into 7fc6e874ee
commit
e5b257ec5e
@ -1 +0,0 @@
|
||||
console.log('Hello, World!')
|
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>30DaysOfJavaScript</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>30DaysOfJavaScript:03 Day</h1>
|
||||
<h2>Introduction</h2>
|
||||
<button onclick="alert('Welcome to 30DaysOfJavaScript!');">Click Me</button>
|
||||
<script src="./helloworld.js"></script>
|
||||
<script src="./introduction.js"></script>
|
||||
<script src="./variable.js"></script>
|
||||
<script src="./main.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1 +0,0 @@
|
||||
console.log('Welcome to 30DaysOfJavaScript')
|
@ -1,4 +0,0 @@
|
||||
// the variable values can be accessed from other variable.js file
|
||||
console.log(firstName, lastName, country, city, age, isMarried)
|
||||
console.log(gravity, boilingPoint, PI) // 9.81, 100, 3.14
|
||||
console.log(name, job, live)
|
@ -1,20 +0,0 @@
|
||||
// Declaring different variables of different data types
|
||||
|
||||
let firstName = 'Asabeneh' // first name of a person
|
||||
let lastName = 'Yetayeh' // last name of a person
|
||||
let country = 'Finland' // country
|
||||
let city = 'Helsinki' // capital city
|
||||
let age = 100 // age in years
|
||||
let isMarried = true
|
||||
|
||||
// Declaring variables with number values
|
||||
|
||||
const gravity = 9.81 // earth gravity in m/s2
|
||||
const boilingPoint = 100 // water boiling point, temperature in oC
|
||||
const PI = 3.14 // geometrical constant
|
||||
|
||||
// Variables can also be declaring in one line separated by comma
|
||||
|
||||
let name = 'Asabeneh', //name of a person
|
||||
job = 'teacher',
|
||||
live = 'Finland'
|
@ -0,0 +1 @@
|
||||
console.log("Hello World!"); //print Hello World! in the console
|
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Day 1</title>
|
||||
<script src="helloworld.js" ></script>
|
||||
<script src="introduction.js"></script>
|
||||
<script src="variable.js"></script>
|
||||
<script src="main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Javascript Day 1</h1>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
console.log('Welcome to Javascript' + ' Day 1'); //print Welcome to Javascript Day 1
|
@ -0,0 +1,5 @@
|
||||
//The variable values can be accessed from other js file.
|
||||
|
||||
console.log(firstName, lastName, country, city, age, single);
|
||||
console.log(gravity, boilingPoint, PI); //Output 9.81, 100, 3.14.
|
||||
console.log(name, job, live); //Output Kyrie, Player, Australia.
|
@ -0,0 +1,19 @@
|
||||
//Declaring different variables of different Data types.
|
||||
|
||||
let firstName = 'Norman'; //First name of a person.
|
||||
let lastName = 'Taz'; //Last name of a person.
|
||||
let country = 'Philippines'; //Name of a country.
|
||||
let city = 'Manila'; //Name of a city.
|
||||
let age = 13; //Age for years.
|
||||
let single = true; //Status of the person.
|
||||
|
||||
|
||||
//Declaring values with number values.
|
||||
|
||||
const gravity = 9.81; //Earth Gravitiy in m/s2.
|
||||
const boilingPoint = 100; //Water boiling point, temperature in oC.
|
||||
const PI = 4.14 //The number π is a mathematical constant that is the ratio of a circle's circumference to its diameter, approximately equal to 3.14159.
|
||||
|
||||
//Variables can also be declared in one line separated by comma.
|
||||
|
||||
let name = 'Kyrie', job = 'Player', live = 'Australia';
|
@ -1,17 +0,0 @@
|
||||
// Declaring different variables of different data types
|
||||
let firstName = 'Asabeneh' // first name of a person
|
||||
let lastName = 'Yetayeh' // last name of a person
|
||||
let country = 'Finland' // country
|
||||
let city = 'Helsinki' // capital city
|
||||
let age = 100 // age in years
|
||||
let isMarried = true
|
||||
|
||||
// Declaring variables with number values
|
||||
const gravity = 9.81 // earth gravity in m/s2
|
||||
const boilingPoint = 100 // water boiling point, temperature in oC
|
||||
const PI = 3.14 // geometrical constant
|
||||
|
||||
// Variables can also be declaring in one line separated by comma
|
||||
let name = 'Asabeneh', //name of a person
|
||||
job = 'teacher',
|
||||
live = 'Finland'
|
Loading…
Reference in new issue