searching particualr value from switch case javascript code :   1.I have got this below code on my alert box or say any variable.
    2.Here i just need to change the values in expr from 'Papayas' to other values as such 'Oranges','Mangoes', dynamically.
    3. How to define the javascript function for that.

    
        
      var expr = 'Papayas';
        switch (expr) {
          case 'Oranges':
            console.log('Oranges are $0.59 a pound.');
            break;
          case 'Mangoes':
    console.log('i am mango');
    break;
          case 'Papayas':
            console.log('Mangoes and papayas are $2.79 a pound.');
            break;
          default:
            console.log('Sorry, we are out of ' + expr + '.');
        }

