What is the output if the following JavaScript program is executed by a typical web browser?
namespace LanguageFeatures.
Controllers {
public class HomeController :
Controller {
public ViewResult Index() {
object[] data = new object[] { 275 M , 29.95 M , "apple", "orange", 100, 10};
decimal total = 0;
for (int i=0; i < data.Length; i++) {
switch (data[i]) {
case decimal decimalValue:
total += decimalValue;
break;
case int intValue when intValue > 50:
total += intValue;
break;
} }
return View("Index", new string[]
{$"Total: {total:C2}" });
} } }- $\$ 100.95$
- $\$ 404.95$
- $\$ 250.95$
- Compilation error