0% found this document useful (0 votes)
3 views1 page

Javascript Notes

JavaScript is a programming language for the web that can manipulate HTML and CSS, and was created by Brendan Eich in 1995. It allows for dynamic behavior on web pages through various types of JavaScript, including inline, internal, and external scripts. Key concepts include variables, arrays, and methods for outputting data, making it essential for web development.

Uploaded by

thiraisheditzzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Javascript Notes

JavaScript is a programming language for the web that can manipulate HTML and CSS, and was created by Brendan Eich in 1995. It allows for dynamic behavior on web pages through various types of JavaScript, including inline, internal, and external scripts. Key concepts include variables, arrays, and methods for outputting data, making it essential for web development.

Uploaded by

thiraisheditzzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1)What is javascript:-->

a)Javascript is programming language for web


b)it can update and change both html and css
c)it can calculate, manipulate and update data

d)javascript and java are completely different programming languages both in


concepts and design
e)Javascript was invented by brendan eich in 1995
f)ECMAscript is the official name for javascript
g)ES6 is current version of javascript

2)Why to learn javascript:-->


a)Html:-->to define content of web page
b)CSS:-->to define layout and design of web page
c)Javascript:-->to program the behavior of web page

3)Javascript can change HTML contents:-->

4)type's js:-->
a)inline js:-->define js effect for single html element
b)internal js:-->can be used by current web page
<script type="text/javascript">
code goes here
</script>

c)external js:-->can be used by entire application


<script type="text/javascript" src="location of js/js file"></script>

5)javascript can change html attribute value:-->

6)Javascript can hide html element:-->

7)Javascript can change text size:

8)javascript output:-->
a)innerHTML:-->
b)innerText:-->
c)document.write():-->
d)window.alert():-->
e)console.log():-->
f)window.print():-->

9)Javascript variables:-->variables are used to store data values


a)How to declare variables in javascript
I)var :--> was used from 1995 to 2015(for older browsers)
II)const:-->can be used for array and object if value changed
III)let:-->can be used in any case

10)Javascript Arrays:-->Can hold multiple values in singal variable


a)We can create array using keyword new
b)accessing array values
c)changing index values
d)how convert array to string = toString();

You might also like