Skip to content

Commit

Permalink
day 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Jan 6, 2020
1 parent fc0b62b commit 27c857d
Show file tree
Hide file tree
Showing 23 changed files with 1,124 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ day7.md
day8.md
day9.md
day10.md
01_02_03_days_backup.md
01_02_03_days_backup.md
test.md
06_Day
07_Day
08_Day
09_Day
10_Day
11_Day
12_Day
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion 02_Day/02_day_data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ console.log(country.substring(3)) // land
7. *split()*: The split method splits a string at a specified place.

```js
let string = '30 Days Of JavaScipt'
let string = '30 Days Of JavaScript'

console.log(string.split()) // ["30 Days Of JavaScript"]
console.log(string.split(' ')) // ["30", "Days", "Of", "JavaScript"]
Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions 03_Day/03_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>

<head>
<title>30DaysOfJavaScript: 03 Day</title>
</head>

<body>

<!-- import your scripts here -->
<script src="./scripts/main.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions 03_Day/03_day_starter/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// this is your main.js script
13 changes: 8 additions & 5 deletions 04_Day/04_day_conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [if else if else](#if-else-if-else)
- [Switch](#switch)
- [Ternary Operators](#ternary-operators)
- [💻 Exercise - 8 : Conditionals](#%f0%9f%92%bb-exercise---8--conditionals)
- [💻 Exercise : Conditionals](#%f0%9f%92%bb-exercise--conditionals)

# 📔 Day 4

Expand Down Expand Up @@ -237,7 +237,7 @@ isRaining

🌕 You are extraordinary and you have a remarkable potential. You have just completed day 4 challenge and you are four steps a head in to your way to greatness. Now do some exercises for your brain and for your muscle.

# 💻 Exercise - 8 : Conditionals
# 💻 Exercise : Conditionals

1. Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:You are old enough to drive but if not 18 give feedback to wait for the years he supposed to wait for.

Expand All @@ -255,8 +255,11 @@ isRaining
Enter your age: 30
You are 5 years older than me.
```

1. If a is greater than b return a is greater than b else a is less than b. Do it both using if else and ternary operator.

1. If a is greater than b return 'a is greater than b' else 'a is less than b'. Try to implement in to ways

- using if else
- ternary operator.

```js
let a = 4
Expand Down Expand Up @@ -306,7 +309,7 @@ isRaining
Friday is a work day.
```

8. Write a program which tells the number days in a month.
1. Write a program which tells the number days in a month.

```sh
Enter month: January
Expand Down
15 changes: 15 additions & 0 deletions 04_Day/04_day_starter/04_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>

<head>
<title>30DaysOfJavaScript</title>
</head>

<body>

<!-- import your scripts here -->
<script src="./scripts/main.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions 04_Day/04_day_starter/04_day_starter/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// this is your main.js script
15 changes: 15 additions & 0 deletions 04_Day/04_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>

<head>
<title>30DaysOfJavaScript:04 Day</title>
</head>

<body>

<!-- import your scripts here -->
<script src="./scripts/main.js"></script>

</body>

</html>
1 change: 1 addition & 0 deletions 04_Day/04_day_starter/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// this is your main.js script
Loading

0 comments on commit 27c857d

Please sign in to comment.