Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What is JavaScript? What are the advantages of implementing JavaScript on a s

ID: 3724433 • Letter: 1

Question

1. What is JavaScript? What are the advantages of implementing JavaScript on a site? Min: 75 words
2. How is ECMAScript and JavaScript related? Min: 75 words
3. What do these logical expressions evaluate to?


true  && true    


true  || false   


false && true     


false || !(false)


4. Using the Developer Tool Console built into any Browser output the sentence "Hello World, my name is yourFirstName yourLastName!". Replace yourFirstName and yourLastName with your actual first and last name.


Hint: console.log() 


Submit a screenshot


 5. What are the six basic types of values in JavaScript? Provide a short explanation of three of these types

Explanation / Answer

If you have any problems with the answer or want me to edit the answer, just let me know in the comments and I will try to get on to it as soon as possible. Do give a positive rating if you think this answer helped.

We are required to do only 4 parts of a question.

1. Javascript is a lightweight dynamic programming language previously known as LiveScript was released on Netscape 2.0 in 1995. It is commonly used for providing additional functionality and behavioral capabilities to web pages and makes the web pages dynamic. It is an object-oriented programming language.

Advantages.

1. Input validation on client side before sending to server which makes load lower on the server.

2. Easy to learn language.

3. Do not have to wait for a page to reload to get the result which provide instance response to the client.

4. Faster result generation at user side as script is at the client side.

5. Rich and interactive interface like slider, drag and drop component.

2. JavaScript was developed at Netscape in 1995 and for standardization they submitted it to the European Computer Manufacturer’s Association (ECMA). But they had trademark issues with the JavaScript so they decided to submit the name ECMAScript which became the standard in 1997. ECMAScript is trademarked standard for scripting-language. And JavaScript is based on the ECMAScript standard and is the best known implementation of ECMAScript. Other languages based on ECMAScript are ActionScipt and Jscript.

3. 1 = true and 0 = false.

For & &

1 + 1 = 1 (true)

1 + 0 = 0 (false)

0 + 0 = 0 (false)

For ||

1 + 1 = 1 (true)

1 + 0 = 1 (true)

0 + 0 = 0 (false)

For !

True = false

False = true.

true && true   

= 1 && 1 = 1 = true.

true || false

1 || 0 = 1 (true)

false && true  

0 && 1 = 0.

false || !(false)

0 || !(0)

0 || 1 = 1 =true.

5. Six basic types of values in JavaScript:

i) numbers,

ii) strings,

iii) Booleans,

iv) objects,

v) functions,

vi) undefined values

Number

It is the sequence of digits (0-9) used for representing numerical values.

Strings

String is a sequence of characters which are used for representing text.

Boolean

It is a logical type value which has only two values true or false and