Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Excersizes/.DS_Store
Binary file not shown.
Binary file added Excersizes/DOM Vs. Server (Class 6)/.DS_Store
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions Excersizes/DOM Vs. Server (Class 6)/dom example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<html>
<head>
<title>JS Practice</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
</head>
<body>
<h1>Practicing JS</h1>
<script type="text/javascript" src="static/practice.js"></script>
</body>
</html>
Binary file not shown.
22 changes: 22 additions & 0 deletions Excersizes/DOM Vs. Server (Class 6)/dom example/static/practice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var someNums = [1, 12, 15, 18, 20, 23, 26, 10, 33, 134];
var num;
var oddOrEven;


var isEven = function(number){
if (number%2 == 0){
return true
} else {
return false
};
};

for (var i = 0, len = someNums.length; i<len; i++){
num = someNums[i];
if (isEven(num) == true){
oddOrEven = "Even";
} else{
oddOrEven = "Odd";
};
console.log( num + ' is ' + oddOrEven);
}
22 changes: 22 additions & 0 deletions Excersizes/DOM Vs. Server (Class 6)/practice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var someNums = [1, 12, 15, 18, 20, 23, 26, 10, 33, 134];
var num;
var oddOrEven;


var isEven = function(number){
if (number%2 == 0){
return true
} else {
return false
};
};

for (var i = 0, len = someNums.length; i<len; i++){
num = someNums[i];
if (isEven(num) == true){
oddOrEven = "Even";
} else{
oddOrEven = "Odd";
};
console.log( num + ' is ' + oddOrEven);
}
Binary file added Slide Content /Class 6 DOM Vs. Server .pdf
Binary file not shown.