Chapter 4 javascript

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following JavaScript codes will pop up a message box with words it works

Alert ("it works");

Which of the following is a correct way for single line comments in javascript

// this is a JavaScript comment

In JavaScript how do you receive

Array digits = [ ];

In JavaScript which of the following is the correct way

Function displayequation

In Java script you can use the maths object

Var randNum= math.random();

In JavaScript how do you separate words

Var words = sentence.split("");

Programming language use to store values in computer memory

Variables

All JavaScript codes have to be inside the head element

True

JavaScript has a method called add event listener

True

Which of the following is a correct way to include JavaScript code in an html document

D

How many times will the following

4 or 5

In an html file

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

What will the following

C

How do you declare a variable in javascript

C or d

Variable names in JavaScript is case sensitive

True

In JavaScript suppose useranswer is a variable

B if useranswer = 11

Which of the following is a JavaScript variable rule

B. Variable names should start with a letter and an underscore

In JavaScript which of the following

Displayequation()

Which is the javascript syntax to change the content of the html element <p> with an I'd of myparagraph

Document.getelementbyid.("myparagraph").innerhtml = new paragraph

If you open an external

False

Java is a short name for javascript

False

In JavaScript how do you remove the decimal part or a number

Math.floor(2.34);

In JavaScript which event occurs when the user clicks on an html element

Onclicks


संबंधित स्टडी सेट्स

Nursing Jurisprudence and Ethics - Quiz #3

View Set

U.S. History 6.19.W - Lesson: American Economic Expansion Review

View Set

Chapter 1: Introduction to Networking

View Set

Inman's domain all domain numerical problems

View Set

Chapter 23: Management of Patients With Chest and Lower Respiratory Tract Disorders

View Set

Chapter 18 - Connective Tissue Disease

View Set