Skip to content

Commit 3be5165

Browse files
committed
completed
1 parent 903b731 commit 3be5165

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

Sprint-2/Prep/functions.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,19 @@ console.log(addNumberResult);
4848

4949
const repeatedText = "one, two, three";
5050
const lastOnePosition = repeatedText.lastIndexOf("one");
51-
console.log(lastOnePosition);
51+
console.log(lastOnePosition);
52+
53+
// const yourName = prompt("Please enter your name: ");
54+
// const yourLocation = prompt("Please enter your location: ");
55+
// const yourHobby = prompt("Enter your hobby: ");
56+
// const yourFavoriteFood = prompt("Please enter your favorite food: ")
57+
58+
// function userInfo(yourName, yourLocation, yourHobby, yourFavoriteFood) {
59+
// console.log(`Your name is ${yourName}`)
60+
// console.log(`You live in ${yourLocation}`)
61+
// console.log(`Your hobby is ${yourHobby}`)
62+
// console.log(`Your favorite food is ${yourFavoriteFood}`)
63+
// }
64+
65+
// userInfo(yourName, yourLocation, yourHobby, yourFavoriteFood)
66+
// Chrome devOps prompt function, variable and parameters

0 commit comments

Comments
 (0)