What is your salary?

Report a typo

Create a switch operator inside the function getSalary. It should show the following text in the console.log depending on the values:

value text in console.log

"Bootstrap"

$15 per hour

"Chrome Extension"

$20 per hour

"React"

$30 per hour

other cases

$25 per hour

Sample Input 1:

Bootstrap

Sample Output 1:

$15 per hour
Write a program in JavaScript
function getSalary(value){
// write your code here
}
___

Create a free account to access the full topic