Explore BrainMass

Explore BrainMass

    Javscript Basics

    Quiz on basics of javascript programming language.

    1

    How do you write "Hello Brainmass" in an alert box?

    2

    How do you create a function in JavaScript?

    3

    How do you write an IF statement in JavaScript to check that variable "i" has a value of 10?

    4

    How to write an IF statement for executing some code if "i" is NOT equal to 7?

    5

    What is the correct way to write a JavaScript array?

    6

    How do you round the number 20.25, to the nearest integer

    7

    Which event occurs when the user clicks on an HTML element?

    8

    How do you define a variable in javascript?