If the State shows red and javascript script does not

I am just learning Javascript and I can't believe, I have problems with that simple statement, but alas I am.

Any help would be appreciated.

The script is a script of learning:

JavaScript document

var crust = prompt ("what kind of crust do you want - thin or regular?'");

If (== crust "thin"). (crust is 'regular')) {

var cheese is prompt ("choose your cheese?");.

{Switch (Cheese)}

case "mozarella":

case 'feta ':

"parmesan" case

case "cheddar":

break;

by default:

Alert ("sorry we not that kind of cheese.");

break;

}

} else {}

Alert ("sorry we don't serve that kind of crust here.'");

}

Line no 4 and 19 shows red and the script does not run.  Help, please.  I created a similar script with numbers and it works fine but as soon as I put channels in I get errors.

I tried to rewrite these lines so many times in so many different ways.

I use Dreamweaver CC 2015, I Am studying an old version of Javascript?

Any help would be appreciated.

Thank you

Try to run your code through this online validation tool.

JavaScript - http://www.jslint.com/



Nancy O.

Tags: Dreamweaver

Similar Questions

  • To send messages through the network (LAN, netsend and msg.exe) does not win 7... can u tell me the cmd

    To send messages through the network (LAN, netsend and msg.exe) does not win 7... can u tell me the cmd

    If any document available please send my email id

    Thank you & best regards

    Martine

    Hello

    Thanks for posting your query to the Microsoft forum.

    Please see the suggestions in the following threads:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/msgexe-netsend-anything-availible-on-Windows-7/e9743edc-AFA9-4942-b1c7-66baf443067b

    https://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/net-send-in-command-prompt-does-not-work/00ce5137-dff7-49e5-8511-943e55b83bd7

    Let us know if you need more assistance. We will be happy to help you.

    ___________________

    Thank you best regards &,.

    Isha Soni

  • Help, please! I'm going nuts! JavaScript problem when you try to load the images on the E - Bay auctions and My Space does not look right

    This is the second time I've been here for help and I had to use IE in recent weeks because I still I have this problem. The pictures on individual E - Bay auctions start to load then stop, I think it is a Javascript problem. I already tried the troubleshooting tips for the "images are not displayed" AND I uninstalled/reinstalled Firefox without result. My space does not seem to be display correctly, for example, if I want to change the color of a font in a message boxes appear, but no color... Please HELP somebody! Thank you!

    URL of affected sites

    http://CGI.eBay.com/WS/eBayISAPI.dll?ViewItem & Item = 230497781181 & ADME:B:SS:US:1123 = getting

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
    .
    You can also try to 'Reset all the preferences for the default user of Firefox' on the starting window of Firefox to solve the issues in Safe Mode - see http://kb.mozillazine.org/Resetting_preferences

  • No matter which web page opening causes crashes and several scripts does not

    Once I open firefox, it hangs on nearly every Web page. After a few minutes, a script error does not appear. The shutdown script does nothing most of the time. Most often, one to ten more script errors does not answer will appear. I tried reset firefox and firefox running in safe mode, neither of which has helped the problem.

    I had this problem recently, after Windows updates on all sites that use Flash. It is many, many sites...

    It is a standard orientation which addresses the most common issues with Flash. I'm sure you've seen some of it before, but just in case:

    (1) make sure that all recorders/downloaders who interact with the Flash media are as up-to-date as possible, or turn them off.

    (2) disable graphics hardware acceleration in Firefox and Flash

    (A) in Firefox, see the post above

    (B) in Flash, see this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

    (3) turn off protected mode (Windows Vista/7/8)

    See this article from Adobe support under the heading of 'Last resort': Adobe Forums: how to fix protected Flash Player for Firefox mode?

  • HP Deskjet 2132: The date showing on my screen but does not print on the sheet.

    The header and the footer shows on my computer screen, but it does not print on the print current sheet.

    I tried the solution, but it did not work, and the strange thing is that if I change from Portrait to landscape of the date part prints but not all of it.  21/02/16 just found the problem. I was using the Google Chrome browser and I switched to Mozilla Fire fox.  Walla, the problem has been resolved. Thanks a lot for your help. I don't know much about computers so I'll have more questions later.

  • How can I download the new update on my Macbook pro when the password is not working? When I connect to the Adobe site with the same user name and password it DOES not work. I don't understand why.

    So I have a macbook pro - and she advised me that I had to update my Adobe flash player. So I go through all the steps and I'm stuck at the last stage, where he asks me my user name and password. I go in there correctly - several times and it does NOT connect. He shakes to show that there's an error. Double check my file AND I go to the Adobe site to connect with the same information. and it works very well.

    WHAT IS THE PROBLEM? Help please.

    Could you please try ComputerName administrator as username and the password as password.

    I hope this works.

    Concerning

    Hervé Khare

  • I have a MacBook Pro 13 inch early 2015 and when I connect to the power supply the connected is loose and my Mac does not load. Please help me

    MMacBook does not load

    Looks like you have is connected wrong charger (you have an older Mac in the House?) or the charger has been damaged. Perhaps the magnetic head is damaged.

    You have another mac or a friend with a mac that has the same charger if you can try that?

    You can certainly buy replacement chargers, but I recommend that ensure you it is the charger that is the first problem to avoid spending money. If this is a problem with the port on the Mac, then a replacement charger will not help.

    If you don't have a 2nd charger to test, you can take your Mac at the Apple Store or your local electronics store that sells Macs and ask to try the plug one of their display models.

  • The center of security and Windows Firewall does not.

    I run MSE and Windows Firewall. The Security Center will pop up and tell me my firewall is disabled and I'm unprotected. When I check the recommendations, sometimes it is still on! Other times it is turned off, turn back on and someday or later does it again. This is what would serve turn off my Windows Firewall or give false information on it power status?

    Hi saltydad,

    From the description, even if you use MSE does participate or part of this problem.  It is a problem between the Security Center and Windows Firewall.

    First, try the following fix, as he helped others with a similar problem: http://social.microsoft.com/forums/en-US/onecarefirewall/thread/c0ca9eb2-14b0-4591-be85-4b7fd1700191/.

    If this does not work, please repost it here: http://answers.microsoft.com/en-us/windows/forum/security?page=1&tab=all&tm=1300700638376 and to the top where it says Windows Version uses the dropmenu to choose your version if you go on the appropriate forum for your system.  They will be more than happy to help you with these questions.

    I hope this helps.

    Good luck!

  • Control Panel is not on the list. Users and local groups does not appear in computer management.

    1. click on start, and then point to setting, control panel is not on the list.  When you try to get to the Panel of control via a link in Help and Support, had an error, "operation has been cancelled due to restrictions in effect on this computer.  Contact your system administrator. »

    2. local Users and Groups does not appear in computer management.

    There is only one profile on the PC, the OS is XP Home.  It seems lost his administrator privileges somehow my user profile.  Could you please suggest how to solve this problem?  Thanks in advance.

    Hi PJohnson,

    You can access the link below and follow the steps in the article to create a new user account and copy the data to the new account.

    http://support.Microsoft.com/kb/811151

    I hope this helps. Let us know the result.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Errors appear in the profile of host and Adobe reader does not work, but works fine in profile comments?

    Errors appear in the profile of the host, but nobody else. Problems with the bar side in the profile of the host, but box for comments function profile works very well. Adobe reader software also works at the end of comments, but does not work in the profile of the host...

    You probably have a corrupt user profile.

    This article gives instructions on how to deal with it.

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • The monitor shows red and green lines

    my laptop is to jump up and down with green and red lines through it

    original title: my screen jumps up and down and has green and red lines through it

    It is normally a sign of a graphics issue.

    Download the latest graphic drivers:

    Go to the website of the manufacturer of your computer/laptop > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    If the problem persists on board graphic Hardwarre could be at fault.

    Contact the manufacturer of the laptop computer,

    See you soon.

    Mick Murphy - Microsoft partner

  • Printer shows ready and connected but does not print how to reconnect it

    Printer HP Photosmart 5520 is not yet shown under devices and printers, but when I do caillet shows Photosmart 5520 connected and ready, but it will not be printed.  Only, it started when I had another problem with emails and respond and called century link (my emailer) on another problem.  Can someone tell me what to do, I have the disc and have inserted and nothing going on help please, I really need the printer.

    Ron,

    Thank you for your answer and I did something that apparently worked.  Before your apply I shut down the computer and the next time I opened it, the printer worked.  I think there were some documents before and when I turned it on again, it worked.  Thanks for your reply, I did apparently accidentally.

  • I did according to the instructions RE: cut and paste, still does not work.

    This is what is shown as my profile directory
    /Home/davidlisle/.Mozilla/firefoxsa4u14wa.default-1390261301661

    It's the user.js, I created in accordance with the online instructions page:

    // This file can be used to configure global preferences for Firefox
    // Example: Homepage
    pref("browser.startup.homepage", "http://www.linkedin.com/");
    user_pref("capability.policy.policynames", "allowclipboard");
    user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
    user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
    

    However, the data but followed instructions do not produce the expected results.
    Right now I see myself forced to use another browser as I work a lot on the line and I 'should' be able to copy / paste. If you can respond in a timely and a solution, I'll continue with firefox, I like. Otherwise, my frustration level has peaked and interest in firefox is rapidly declining.

    I should be able to accomplish this task with simple steps, not an eternity of troubleshooting your installation bad 'protection '. I am equally sure that many others have no problem, I do however.

    I have provided some basic information about this machine, if you need something specific, I'm sure I'll be happy to hand it to you.

    MemTotal:        4130948 kB
    MemFree:         1416364 kB
    Buffers:          400032 kB
    Cached:          1253676 kB
    SwapCached:            0 kB
    Active:           893300 kB
    Inactive:        1373268 kB
    Active(anon):     579364 kB
    Inactive(anon):    70528 kB
    Active(file):     313936 kB
    Inactive(file):  1302740 kB
    Unevictable:          40 kB
    Mlocked:              40 kB
    HighTotal:       3278664 kB
    HighFree:        1359244 kB
    LowTotal:         852284 kB
    LowFree:           57120 kB
    SwapTotal:      107853432 kB
    SwapFree:       107853432 kB
    Dirty:                92 kB
    Writeback:             0 kB
    AnonPages:        612904 kB
    Mapped:           166476 kB
    Shmem:             37032 kB
    Slab:             379232 kB
    SReclaimable:     361112 kB
    SUnreclaim:        18120 kB
    KernelStack:        4112 kB
    PageTables:        11556 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:    109918904 kB
    Committed_AS:    3050400 kB
    VmallocTotal:     122880 kB
    VmallocUsed:       87464 kB
    VmallocChunk:      23508 kB
    HardwareCorrupted:     0 kB
    AnonHugePages:         0 kB
    HugePages_Total:       0
    HugePages_Free:        0
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    DirectMap4k:       10232 kB
    DirectMap2M:      903168 kB
    
    XXX
    
    *******************************************************************************************************
    Version:
    Linux version 3.11.0-15-lowlatency (buildd@batsu) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #8-Ubuntu SMP PREEMPT Sun Dec 15 21:38:27 UTC 2013
    *******************************************************************************************************
    
    cpuinfo:
    processor	: 0
    vendor_id	: AuthenticAMD
    cpu family	: 18
    model		: 1
    model name	: AMD A6-3500 APU with Radeon(tm) HD Graphics
    stepping	: 0
    microcode	: 0x3000027
    cpu MHz		: 800.000
    cache size	: 1024 KB
    physical id	: 0
    siblings	: 3
    core id		: 0
    cpu cores	: 3
    apicid		: 0
    initial apicid	: 0
    fdiv_bug	: no
    f00f_bug	: no
    coma_bug	: no
    fpu		: yes
    fpu_exception	: yes
    cpuid level	: 6
    wp		: yes
    flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
    bogomips	: 4189.23
    clflush size	: 64
    cache_alignment	: 64
    address sizes	: 40 bits physical, 48 bits virtual
    power management: ts ttp tm stc 100mhzsteps hwpstate cpb
    
    processor	: 1
    vendor_id	: AuthenticAMD
    cpu family	: 18
    model		: 1
    model name	: AMD A6-3500 APU with Radeon(tm) HD Graphics
    stepping	: 0
    microcode	: 0x3000027
    cpu MHz		: 800.000
    cache size	: 1024 KB
    physical id	: 0
    siblings	: 3
    core id		: 1
    cpu cores	: 3
    apicid		: 1
    initial apicid	: 1
    fdiv_bug	: no
    f00f_bug	: no
    coma_bug	: no
    fpu		: yes
    fpu_exception	: yes
    cpuid level	: 6
    wp		: yes
    flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
    bogomips	: 4189.23
    clflush size	: 64
    cache_alignment	: 64
    address sizes	: 40 bits physical, 48 bits virtual
    power management: ts ttp tm stc 100mhzsteps hwpstate cpb
    
    processor	: 2
    vendor_id	: AuthenticAMD
    cpu family	: 18
    model		: 1
    model name	: AMD A6-3500 APU with Radeon(tm) HD Graphics
    stepping	: 0
    microcode	: 0x3000027
    cpu MHz		: 800.000
    cache size	: 1024 KB
    physical id	: 0
    siblings	: 3
    core id		: 2
    cpu cores	: 3
    apicid		: 2
    initial apicid	: 2
    fdiv_bug	: no
    f00f_bug	: no
    coma_bug	: no
    fpu		: yes
    fpu_exception	: yes
    cpuid level	: 6
    wp		: yes
    flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
    bogomips	: 4189.23
    clflush size	: 64
    cache_alignment	: 64
    address sizes	: 40 bits physical, 48 bits virtual
    power management: ts ttp tm stc 100mhzsteps hwpstate cpb
    ********************************************************************************************************
    
    version_signature:
    Ubuntu 3.11.0-15.8-lowlatency 3.11.10
    ********************************************************************************************************
    
    meminfo:
    MemTotal:        4130948 kB
    MemFree:         1416364 kB
    Buffers:          400032 kB
    Cached:          1253676 kB
    SwapCached:            0 kB
    Active:           893300 kB
    Inactive:        1373268 kB
    Active(anon):     579364 kB
    Inactive(anon):    70528 kB
    Active(file):     313936 kB
    Inactive(file):  1302740 kB
    Unevictable:          40 kB
    Mlocked:              40 kB
    HighTotal:       3278664 kB
    HighFree:        1359244 kB
    LowTotal:         852284 kB
    LowFree:           57120 kB
    SwapTotal:      107853432 kB
    SwapFree:       107853432 kB
    Dirty:                92 kB
    Writeback:             0 kB
    AnonPages:        612904 kB
    Mapped:           166476 kB
    Shmem:             37032 kB
    Slab:             379232 kB
    SReclaimable:     361112 kB
    SUnreclaim:        18120 kB
    KernelStack:        4112 kB
    PageTables:        11556 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:    109918904 kB
    Committed_AS:    3050400 kB
    VmallocTotal:     122880 kB
    VmallocUsed:       87464 kB
    VmallocChunk:      23508 kB
    HardwareCorrupted:     0 kB
    AnonHugePages:         0 kB
    HugePages_Total:       0
    HugePages_Free:        0
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    DirectMap4k:       10232 kB
    DirectMap2M:      903168 kB

    Edit: deleted email from the public view. (philipp)

    You need these lines in user.js allow the site www.linkedin.com access the Clipboard:

    user_pref("capability.policy.policynames", "allowclipboard");
    user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
    user_pref("capability.policy.allowclipboard.sites", "http://www.linkedin.com/");

    Use keyboard shortcuts if the buttons on the web page or other methods do not work.

    • Copy: Ctrl + C or Ctrl + insert (Mac: command + C)
    • Paste: Ctrl + V or shift + insert (Mac: command + V)
    • Cut: Ctrl + X or shift + delete (Mac: command + X)
  • How to remove a photo album? I can't find the instructions. Delete and command + delete does not work.

    I use Photos (not iPhoto) and El Capitan.

    Then you need to update your profile and post on the forum of Photos (I'll ask that this be moved to the appropriate forum)

    The pictures to delete an album right-click on it and select Delete album

    Note that this removes the album not the photos in the album

    LN

  • layers and action script does not like I thought

    I created a simple web banner that returns through some messages with a script snowfall that make the snow fall.

    However I can't seem to get the snow fall only TI, a single layer falls in front of everything rather than behind.

    SWF file available if someone can help?

    Here

Maybe you are looking for