Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4059404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:12:16+00:00 2026-05-20T15:12:16+00:00

if yes, why this code doesn’t alert anything? <html> <head> <script type=text/javascript> switch (hello

  • 0

if yes, why this code doesn’t alert anything?

<html>
<head>
<script type="text/javascript">
   switch ("hello world") {
      case "hello" + " world": 
        alert("Greeting was found.");
        break;
    case "goodbye": 
        alert("Closing was found.");
        break;
    default: 
        alert("Unexpected message was found.");
}
</head>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:12:17+00:00Added an answer on May 20, 2026 at 3:12 pm

    Works for me in…

    • Firefox 3.6
    • Chrome 10

    With a switch, you generally compare it to constants. The way you are using it doesn’t make much sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What reason this code works perfectly: <script type=text/javascript> $(document).ready(function() { $(#login_form).submit(function() { $.post(ajax_login.php, {
I have this HTML code for radios: <input type='radio' name='a_27' value='Yes' id='a_27_0' /> <input
Why doesn't this code do anything? [UIView beginAnimations:@View Flip context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
I have this code: NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:temp/10.0f target:self selector:@selector(verify) userInfo:nil repeats:YES]; CCMoveTo
I have this code <a href=#> <span style=border-right: medium none; class=Yes>Yes</span> </a> <a href=#>
... SecondViewController *svc = [SecondViewController new]; [self presentViewController:svc animated:YES completion:NULL]; } This code is
This is my code: NSOpenPanel *panel = [NSOpenPanel openPanel]; [panel setAllowsMultipleSelection:YES]; [panel runModal]; NSInteger
i.e. I want to bring this in my code: static BOOL MyConstantBool = YES;
(Before anyone says anything Yes this was homework but i have already turned it
In linux this code doesn't work: I added two lines // Added two lines.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.