Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve the 29 to 32 in javascript A typescript-node-projects/getting X + C A News Translate Shanes Tools O Outlook in LinkedIn up Upwork Lead Generation
Solve the 29 to 32 in javascript
A typescript-node-projects/getting X + C A News Translate Shanes Tools O Outlook in LinkedIn up Upwork Lead Generation Sp.... Inbox - EmailOnDeck Ocean of Games M Gmail YouTube 29. Favorite Fruit: Make a array of your favorite fruits, and then write a series of independent if statements that check for certain fruits in your array. Make a array of your three favorite fruits and call it favorite_fruits. Write five if statements. Each should check whether a certain kind of fruit is in your array. If the fruit is in your array, the if block should print a statement, such as You really like bananas! Q https://github.com/panacloud-modern-global-apps/typescript-node-projects/blob/main/getting-started-exercises.md Maps 30. Hello Admin: Make a array of five or more usernames, including the name 'admin'. Imagine you are writing code that will print a greeting to each user after they log in to a website. Loop through the array, and print a greeting to each user: If the username is 'admin', print a special greeting, such as Hello admin, would you like to see a status report? Otherwise, print a generic greeting, such as Hello Eric, thank you for logging in again. 31. No Users: Add an if test to Exercise 28 to make sure the list of users is not empty. If the list is empty, print the message We need to find some users! Remove all of the usernames from your array, and make sure the correct message is printed. 32. Checking Usernames: Do the following to create a program that simulates how websites ensure that everyone has a unique username. Make a list of five or more usernames called current_users. Make another list of five usernames called new_users. Make sure one or two of the new usernames are also in the current_users list. Loop through the new_users list to see if each new username has already been used. If it has, print a message that the person will need to enter a new username. If a username has not been used, print a message saying that the username is available. it [ {" @ 30C Sunny @4) ENG 5:00 PM 10/9/2022 x + CD 13
Step by Step Solution
★★★★★
3.46 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
TypeScript Node Projects If youre looking for TypeScript Nodejs projects you can refer to the GitHub repository you mentioned typescriptnodeprojects I...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started