// Introduction to TypeScript
// TypeScript Examples One
// Function written in vanilla JavaScript
// function subtract(a, b) {
// return a - b
// }
// subtract(6,4)
//Function written with TypeScript
// function subtract(a: number, b: number) {
// return a - b
// }
// subtract('6',4)
// Mini Challenge
// Pass the correct types to the following function to make the text
// appear in the text bubble.
function sendText (isLate: boolean, name: string, time: number) {
if (isLate) {
const textBubble = document.querySelector('.text-bubble')
textBubble.innerHTML = 'Hello ' + name + ', I am stuck in traffic, I should be there at ' +
time + '.'
}
}