---
# System prepended metadata

title: 'Module 1: Practice Drills'

---

# Module 1: Practice Drills

BUILD OUT **20+ PRACTICE DRILLS** USING ALL THE SKILLS IN MODULE 1
- Variable instantiation and modification
- Data types (String, Number, Boolean, Null, Undefined)
- If-else



## Drill 1
Change the variables below to represent their number (integer) values instead of the string values.
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-1?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

## Drill 2
Use parseInt() to change the types of three and four into integers so that sum becomes 7
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-2?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

## Drill 3
Remove the extra space from the start and end of the string use .split() to remove each period and save the result into words
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-3?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

## Drill 4
Change the string to be in uppercase instead of lowercase 
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-4?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

## Drill 5
Concatenate both strings and save the lowercase version into the answer variable
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-5?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

## Drill 6
Write a if else block that changes the timeOfDay variable to be "morning" if the morning variable is true and "night" if it is false
<iframe height="600px" width="100%" src="https://repl.it/@waldo023/module-1-drill-6?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>


## Drill 7



## Drill 8



## Drill 9



## Drill 10



## Drill 11



## Drill 12



## Drill 13



## Drill 14



## Drill 15



## Drill 16



## Drill 17



## Drill 18



## Drill 19



## Drill 20


