Java Script Control Structures Part #1: Multi-way if statements Write a program to input a traffic signal (red, green or yellow) from the user and then ind
Java Script Control Structures Part #1: Multi-way if statements Write a program to input a traffic signal (red, green or yellow) from the user and then indicate the appropriate action (stop, go or caution).Also account for an invalid input (anything other than red/green/yellow). Part #2: Calendar using Switch statement Write a program that inputs a number from 1 to 12 from the user and then prints the corresponding month and it’s number of days (e.g. input of 5 would yield “May has 31 days”).Use the Switch statement. Part #3: Simple loop Write a program to print the numbers from 1 to 20 along with their squares.Use the FOR loop construct.