Blog 29
Work out the values of the variables after each loop runs.
var a = 5;
while (a< 3) {
a = a - 1;
}
var b = 10
while (b < = 5) {
b = b - 1;
}
Tuesday, December 17, 2013
Saturday, December 14, 2013
blog 28
Blog 28
Which is an invalid variable name?
variable var visible value
Which is an invalid variable name?
if and a then
Which is an invalid variable name?
yes correct on true
Which is an invalid variable name?
variable var visible value
Which is an invalid variable name?
if and a then
Which is an invalid variable name?
yes correct on true
Friday, December 13, 2013
Wednesday, December 11, 2013
Blog 26
Blog 26
What would you type in the prompt to go thru the first else if?
var gender= prompt('Enter your gender:')
if (gender == ' ' || gender == null)
{alert('Empty input')}
else if (gender=='Male')
{alert('Next course starts in 2 weeks')}
else if (gender == 'Female')
{ alert('Next course starts in 1 week')}
What would you type in the prompt to go thru the first else if?
var gender= prompt('Enter your gender:')
if (gender == ' ' || gender == null)
{alert('Empty input')}
else if (gender=='Male')
{alert('Next course starts in 2 weeks')}
else if (gender == 'Female')
{ alert('Next course starts in 1 week')}
Saturday, December 7, 2013
Blog 25
Blog 25
var x = true
var y = false
var a = x && y
var b = x || y
var c = !x
Tell me what
a=
b=
c=
var x = true
var y = false
var a = x && y
var b = x || y
var c = !x
Tell me what
a=
b=
c=
Tuesday, December 3, 2013
Blog 24
Blog 24
If the variable x is already defined and equals 4. Now, if the statement is "document.write(x++);", what would be displayed in the browser?
If the variable x is already defined and equals 4. Now, if the statement is "document.write(x++);", what would be displayed in the browser?
Sunday, December 1, 2013
Blog 23
Blog 23
How do you create a variable x that is equal to the string "Hello"?
Please write the java script code.
How do you create a variable x that is equal to the string "Hello"?
Please write the java script code.
Monday, November 25, 2013
Blog 22
Blog 22
Explain what this code does.
var age=prompt('What is your age?', '21' )
What is the answer to this code? var a = "dec " + 21 + 10
What is the result of the code? '20' + 11
What is the result of the code? var e = 9 + 11 + '13'
Explain what this code does.
var age=prompt('What is your age?', '21' )
What is the answer to this code? var a = "dec " + 21 + 10
What is the result of the code? '20' + 11
What is the result of the code? var e = 9 + 11 + '13'
Sunday, November 24, 2013
Blog 21
Blog 21
1- What is wrong with this line? var noOfcleaners = 20
2- What is wrong with this line? var 1fan=50
3- What does this do at then beginning of a line? /n
1- What is wrong with this line? var noOfcleaners = 20
2- What is wrong with this line? var 1fan=50
3- What does this do at then beginning of a line? /n
Wednesday, November 20, 2013
blog 20
blog 20
What is the result of this code?
What is the result of this code?
if ( 4>10)
{
alert("Let's go down the first road!");
}
else
{
// What should we do if the condition is false?
console.log("this is false")
}
Monday, November 18, 2013
Blog 19
Blog 19
What is the result of this line of javascript? "cake".length*9
What are the two values of a boolean data type?
What does console.log () do?
What is the result of this line of javascript? "cake".length*9
What are the two values of a boolean data type?
What does console.log () do?
Thursday, November 14, 2013
Friday, November 8, 2013
Blog 17
Blog 17
Write down what this CSS code does.
(#menu a { display:block; padding: 7px 25px 7px 20px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color:red; border: none;})
Write down what this CSS code does.
(#menu a { display:block; padding: 7px 25px 7px 20px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color:red; border: none;})
Tuesday, November 5, 2013
Blog 16
Blog 16
Write the CSS code for the four type of links listed below.
unvisited link
visited link
mouse over link (hover)
selected link (visited)
Write the CSS code for the four type of links listed below.
unvisited link
visited link
mouse over link (hover)
selected link (visited)
Sunday, November 3, 2013
blog 15
blog 15
Write the CSS code for a ID of footer with width 910 pixels, height 30 pixels, margin 0, padding left 40 pixels, top 0 pixels, right 15 pixels, and bottom 0 pixels with font Arial.
Write the CSS code for a ID of footer with width 910 pixels, height 30 pixels, margin 0, padding left 40 pixels, top 0 pixels, right 15 pixels, and bottom 0 pixels with font Arial.
Wednesday, October 30, 2013
Monday, October 28, 2013
blog 13
blog 13
Set your div's float property to the right and clear both the other elements on the page.
Write the CSS.
Set your div's float property to the right and clear both the other elements on the page.
Write the CSS.
Thursday, October 24, 2013
Blog 12
Blog 12
The paragraph below is given a id of "friend". Friends will all be written in Cursive.
<p id: "friend"> sponge bob </p>
Write the CSS for identifying your friends.
The paragraph below is given a id of "friend". Friends will all be written in Cursive.
<p id: "friend"> sponge bob </p>
Write the CSS for identifying your friends.
Tuesday, October 22, 2013
Blog 11
Blog 11
The division below is given a class of square. Write the CSS for the height 100px and width 100px.
<div class="square"></div>
CSS
The division below is given a class of square. Write the CSS for the height 100px and width 100px.
<div class="square"></div>
CSS
Saturday, October 19, 2013
Tuesday, October 15, 2013
Saturday, October 12, 2013
Wednesday, October 9, 2013
Monday, October 7, 2013
blog #6
blog #6
tell me the difference between the two and which one has numbers in front of each line?
<ul> <li>Dish soap</li> <li>Kitty litter</li> <li>Tomato sauce</li> </ul>
AND
<ol> <li>First item!</li> <li>Second item!</li> <li>Last item!</li> </ol>
tell me the difference between the two and which one has numbers in front of each line?
<ul> <li>Dish soap</li> <li>Kitty litter</li> <li>Tomato sauce</li> </ul>
AND
<ol> <li>First item!</li> <li>Second item!</li> <li>Last item!</li> </ol>
Friday, October 4, 2013
Blog #5
Blog #5
HTML CODE
<p><a href="http://www.quackit.com/html/tutorial/html_links.cfm">Example Link</a></p>
<div class="more-info"><a href="/html/examples/html_links_examples.cfm">More Link Examples...</div>
Tell me what is missing.
HTML CODE
<p><a href="http://www.quackit.com/html/tutorial/html_links.cfm">Example Link</a></p>
<div class="more-info"><a href="/html/examples/html_links_examples.cfm">More Link Examples...</div>
Tell me what is missing.
Wednesday, October 2, 2013
Blog #4
Blog #4
Tell me the difference between these two lines of HTML code
<a href= "http://fwallpapers.com/files/images/cute-dog-40.jpg/> Puppy pile! </a>
<a href= "http://www.pics4learning.com/details.php?img=mvc-022f.jpg/> Puppy pile! </a>
Tell me the difference between these two lines of HTML code
<a href= "http://fwallpapers.com/files/images/cute-dog-40.jpg/> Puppy pile! </a>
<a href= "http://www.pics4learning.com/details.php?img=mvc-022f.jpg/> Puppy pile! </a>
Saturday, September 28, 2013
Blog #3
Blog #3
Write what the output of this HTML.
<html>
<body>
<p> This is <br> a para <br> graph with line breaks </p>
</body>
</html>
Write what the output of this HTML.
<html>
<body>
<p> This is <br> a para <br> graph with line breaks </p>
</body>
</html>
Wednesday, September 25, 2013
Saturday, September 21, 2013
Subscribe to:
Comments (Atom)