Computer Science, asked by lifeasmirajane, 11 months ago

I want these answers urgently

Attachments:

chotasarkar: yes you should ask one by one
lifeasmirajane: Most of the question are MCQ

Answers

Answered by Anonymous
1

Hi,

1) javascript is client side scripting language... we can use javascript to validate form,

animate objects, and attach events on objects like click, mouseeover etc...


2) there are three different ways of addding javascript on webpage


a) inline script

example: <button onclick="alert('Hello, my name is Ajay.')">click me</button>


b) in script tag

<style>

alert('Hello, my name is Ajay.');

</style>


c) in external file

just write anything you wabt in js file and attach it in yout html file like below


<script src="main.js"></script>


3) YES javascript is case sensetive


4) we can add comment in two ways

a) for singlie line comment use //

for example: // this is an example of comment


b) for singlie line comment use /**/

for example:

/*

this is

and example

of multiline comment

*/


5) MCQ


i) A) 2names

ii) A) <script>

iii) C) <script src="abc.js"></script>

iv) B) a scripting language pre compiled in the browser


6)


a) will opuput following text


Student's data

"My IT world "


b) will ask you to enter first number (suppose you entered 5);

again will ask you to enter second number (suppose you entered 10);

then it will show an alert showing total of those number (15)




lifeasmirajane: Are these answers correct?
lifeasmirajane: Nah just asking:)
lifeasmirajane: 1 answers is really difficult for me to learn
Similar questions