JavaScript/Test Basic JavaScript

Part One edit

  • Time required = 5 mins
  • Importance: Equivalent to the importance of learning how to type. Low
  • Requirements: take the test after learning basic JavaScript. The test requires the use of the alert() object. If you are still learning how to put JavaScript in a context for its use, then also study Debug or an equivalent lesson for the quick use of JavaScript through alerts from the JavaScript console. Additionally, you can simply just write the snippets in the questions between <script></script> tags in a standard HTML file. When the HTML is opened, in the browser, the alert will run as the window loads.

Start edit


1 How do you create a comment for your name?

<!--I put my name in script like this!-->
// I put my name in script like this!
# I put my name in script like this!
'I put my name in script like this!

2

 var thisAdd = "1"+"2"; 
alert(thisAdd);

thisAdd will alert what value?

thisAdd will alert "3".
thisAdd will alert Undefined.
thisAdd will alert 12.
thisAdd will alert ERROR.

3

 var thisMulti = "3" * 3; 
alert(thisMulti);

thisMulti will alert what value?

thisMulti will alert Undefined.
thisMulti will alert 33.
thisMulti will alert ERROR.
thisMulti will alert 9.


Part Two edit

Contributions edit

Part Two is optional. If you would like to test the JavaScript you're learning, and frame an opinion on some of the requirements (and differences) then complete the following.
Time: open-book, no time limit.
Title: title your effort.
Importance: equivalent to the initial learning curve required to write any wiki. Low
Definition: In this tutorial the student is required to create another five minute test using the basics of JavaScript and Wiki writing. Follow the instructions to create another five minute test:


 
Activity: Copy the block (below this line) from the wiki plain text found in the edit box of this page in EDIT.


1. Put a question here? How do you declare a variable?

Note 1:
 //show script like this

[a 1]

x = 5

[b 1]

let x = 5

[c 1]

variable x = 5

[d 1]

var x = 5

 

Repeat the question from this text three or four times with new questions.
Complete Below



Start here edit

Please sign with four tildes After you questions are created separate with four ----

Student Results edit

  • Select edit this page and create your test between Student Results and Answers here:

put test here


Answers edit

  1. (In)correct: add an explanation here

  1. (In)correct: add an explanation here

  1. (In)correct: add an explanation here

  1. (In)correct: add an explanation here