First1Last
1 of 1 pages
  1. Answer
    1) JavaScript Lives in a Web Page
    2) JavaScript is not server side language. It is client side language because it is interpreted and run on the browser.
    3) It is weakly typed because it does not need to specify datatypes to declare variable (int, float, double etc) like c/c++.
    4) It is not programming language. It Interpreted language because browsers are interpret it.
    5) JavaScript is case sensitive.
    6) Semicolon(;) is optional
    7) String can be enclosed by using single quote (‘) or double quote(“”)
    8) // is used to specify single line comment and /* ... */ is used to specify multiline comment.

    Explanation: Not available 


    1. Forum
  2. Answer

    Cookie:

    1. A cookie is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website.
    2. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user's previous activity.
    3. Cookies were designed to be a reliable mechanism for websites to remember the state of the website or activity the user had taken in the past

    The general format for setting a cookie is this:

    document.cookie=value;[expires];[path];[domain];[secure];

    Explanation: Not available 


    1. Forum
  3. Answer

    1. Reserved words are those in JavaScript that have been reserved for statements and bulit-in functions.
    2. We should avoid creating identifier for variable and functions that are identical to JavaScript reserved word.

    Five reserved words are:

    1. function
    2. for
    3. return
    4. break
    5. continue

    Explanation: Not available 


    1. Forum
  4. Answer

    An Interpreted Language:
    The process involves by browser parsing (interpreting) the JavaScript code and then creating an equivalent machine language and execute the interpreted code.

    Loosely typed language: The language that does not require to specify the datatype (int, float, boolean, string etc.) before declaring variables.


    Explanation: Not available 


    1. Forum
  5. Answer
    Alert(): The alert() function displays a message on the web page for the users. In this case the users need nothing to do except click to close to it.
    prompt(): The prompt() function also displays a message/statements for the users but in this the users can also input data in the input box.

    Explanation: Not available 


    1. Forum
First1Last
1 of 1 pages