Javascript question thread

+2 James Moore · December 18, 2014
Hey guys been learning java script, Wondering if we could use this thread for people to post exercises. 
such as convert Celsius to Fahrenheit 

Post a Reply

Replies

Oldest  Newest  Rating
0 Steven the awesome · December 18, 2014
Well your'e first, what is the challenge?  Give me the details.:)
0 James Moore · December 20, 2014
okay lets keep it basic.... :P write me a program in javascript to sum the multiples of 5 && under 1000.
I already wrote it so your answer should end up being 300 

hints 
- use a for loop
- sum++ 
0 James Moore · December 20, 2014
okay lets keep it basic.... :P write me a program in javascript to sum the multiples of 5 &&  8 under 1000.
I already wrote it so your answer should end up being 300 

hints 
- use a for loop
- sum++ 
0 Moses Ramses · January 2, 2015
Hi guys im new to Java and learning from the tutorials. Im having a problem. I use to follow the videos. this one did not work please help i dont know why its not working on my sheet but works finely on Bucky's video... help below are the codes..Im getting a plan page with no results ...

<!doctype html>

<html>
<head>

<script type="type/javascript">

bucky = {name:"Bucky Roberts", age:24};
taylor = {name:"Taylor Swift", age:20};

</script>

</head>

<body>


<script type="type/javascript">

document.write(bucky.name = " loves " + taylor.name + " beacuse she is " taylor.age);

</script>


</body>

<html>
0 Raphael de Oliveira · January 2, 2015
@Moses Ramses

You're missing the last concatenation operator 

document.write(bucky.name = " loves " + taylor.name + " beacuse she is " + taylor.age);

That should get you going :)
0 Paulina Surazynska · January 4, 2015
HTML5 Tutorial - 51 - Retrieving and Displaying Stored Data - please help!...
....and find the mistake in this code;)
I'll be soooo grateful :)

thank you!


function doFirst(){
var button = document.getElementById("button");
button.addEventListener("click", saveCrap, false);
}
function saveCrap(){
var one = document.getElementById("one").value;
var two = document.getElementById("two").value;
sessionStorage.setItem(one,two);

display(one);
}
function display(one){
var rightbox = document.getElementById("rightbox");
var two = sessionStorage.getItem(one);
rightbox.innerHTML = "Name of variable: "+one+"<br />Value: "+two;

}
window.addEventListener("load", doFirst, false);
  • 1

Javascript

107,331 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators