Busy. Please wait.
or

show password
Forgot Password?

Don't have an account?  Sign up 
or

Username is available taken
show password

why


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
We do not share your email address with others. It is only used to allow you to reset your password. For details read our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Remove Ads
Don't know
Know
remaining cards
Save
0:01
To flip the current card, click it or press the Spacebar key.  To move the current card to one of the three colored boxes, click on the box.  You may also press the UP ARROW key to move the card to the "Know" box, the DOWN ARROW key to move the card to the "Don't know" box, or the RIGHT ARROW key to move the card to the Remaining box.  You may also click on the card displayed in any of the three boxes to bring that card back to the center.

Pass complete!

"Know" box contains:
Time elapsed:
Retries:
restart all cards




share
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

JAVASCRIPT WEEK 6

QuestionAnswer
<script> var studentGrade =18; testFunction(); function testFunction() { studentGrade =19; } </script> What kind of variable is the variable 'studentGrade'; Global or Local variable? Global Variable.
<script> var number=22; testFunction(); function testFunction() { number =25; } </script> What is the final value of number? 25
<script> var number=22; testFunction(); function testFunction() { var number =25;} </script> document.write(number); What will print last line of code? 22
<script> var str = "Javascript course "; var str2="course"; var position = str.search(str2); document.write("The value " + str2 + " starts from:" + position); </script> What is the result of the code above? 11
<script> var num = 5.23; document.write(num); </script> What is the result of the code above? 5.23
<script> var num1="20"; var num2="350"; document.write(num1+num2); </script> What is the result of the code above? 20350
<script> var num1=10; var num2="45"; document.write(num1*num2); </script> What is the result of the code above? 450
<script> var num = 6.256; document.write(num.toFixed(1)); </script> What is the result of the code above? 6.3
<script> document.write(num.Number(true)); </script> What is the result of the code above? 1
<script> document.write(num.parseInt(2.56)); </script> What is the result of the code above? 2
<script> document.write(num.parseFloat(3.89)); </script> What is the result of the code above? 3.89
What sin math method does? It returns values between -1 and 1 which defines sine of the angle is given in radians.
Created by: kcoulee