Click here to Skip to main content
14,576,147 members

JavaScript

 
Questionunexpected result function autocomplete() Jquery Pin
serenimus21-Nov-18 7:15
Memberserenimus21-Nov-18 7:15 
AnswerRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming21-Nov-18 8:16
mveRichard Deeming21-Nov-18 8:16 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 6:11
Memberserenimus22-Nov-18 6:11 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 6:13
Memberserenimus22-Nov-18 6:13 
GeneralRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming22-Nov-18 8:41
mveRichard Deeming22-Nov-18 8:41 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus1-Dec-18 0:19
Memberserenimus1-Dec-18 0:19 
QuestionHello Pin
Member 1406106620-Nov-18 8:15
MemberMember 1406106620-Nov-18 8:15 
QuestionJavascript help Pin
ghazabaz8-Nov-18 15:54
Memberghazabaz8-Nov-18 15:54 
Hey guys,
I need some hep finishing my javascript assignment. This is what I have so far:

randomlnt(Math.random(0-9));

var quoteElem = document.getElementByTagName("quote")[0];
var randomQ = randomlnt;

function randomlnt(lowest, size) {
	lowest = Math.floor(size);
	size = Math.random(0-9);
}


getQuote(randomQ); {
  document.getElementByTagName("quoteElem").innerHTML = quoteElem;
}


The instructions are a total of 4 steps, some of which I have completed but I am not sure if they are correct or placed in the right area.
Here are the steps:

5. Directly below the comment section, insert a function named randomint that will be used to generate a random integer. Specify two parameters for the function named lowest and size. The lowest parameter will specify the lowest possible value for the random integer and the size parameter will set the number of integers to be generated. Use those two parameter values and the Math.floor() and Math.random() methods to return a random integer within the specified range.

6. Above the randomInt() function insert a command to call the function, generating a random integer from 0 to 9. (Hint: Remember that the size of this interval is 10 because it includes 0 in its range.) Store the result from the function in the randomQ variable.

7. Create a variable named quoteelem that references the first element in the document that has the quote tag name.

8. Call the getQuote() function using the randomQ variable as the parameter value to generate a random Jane Aust
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 3:49
mveRichard Deeming9-Nov-18 3:49 
QuestionRe: Javascript help Pin
ghazabaz9-Nov-18 5:55
Memberghazabaz9-Nov-18 5:55 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 7:48
mveRichard Deeming9-Nov-18 7:48 
Generalguidence for the begginners Pin
Kshitiz Thapa2-Nov-18 3:16
MemberKshitiz Thapa2-Nov-18 3:16 
GeneralRe: guidence for the begginners Pin
Richard MacCutchan2-Nov-18 4:00
mveRichard MacCutchan2-Nov-18 4:00 
SuggestionRe: guidence for the begginners Pin
CHill6015-Nov-18 21:46
mveCHill6015-Nov-18 21:46 
QuestionLoops Pin
Member 1403490227-Oct-18 5:06
MemberMember 1403490227-Oct-18 5:06 
AnswerRe: Loops Pin
Richard MacCutchan27-Oct-18 5:54
mveRichard MacCutchan27-Oct-18 5:54 
QuestionSTOP VALIDATION Pin
Member 1344978425-Oct-18 0:44
MemberMember 1344978425-Oct-18 0:44 
AnswerRe: STOP VALIDATION Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:40
mvaAfzaal Ahmad Zeeshan25-Oct-18 2:40 
Questionno me funciona funcion autocomplete Jquery Pin
serenimus20-Oct-18 8:53
Memberserenimus20-Oct-18 8:53 
AnswerRe: no me funciona funcion autocomplete Jquery Pin
Nelek20-Oct-18 8:59
protectorNelek20-Oct-18 8:59 
QuestionMap JSON data file with dates and multiple string value pairs to Angular/Chart.js Pin
Member 1201357914-Oct-18 22:08
MemberMember 1201357914-Oct-18 22:08 
Questionaspx file don't open in chrome Pin
anasr200010-Oct-18 2:22
professionalanasr200010-Oct-18 2:22 
Questiontest regexep javascript Pin
Alboyz5-Oct-18 4:31
MemberAlboyz5-Oct-18 4:31 
AnswerRe: test regexep javascript Pin
Richard Deeming5-Oct-18 4:48
mveRichard Deeming5-Oct-18 4:48 
GeneralRe: test regexep javascript Pin
Alboyz5-Oct-18 5:02
MemberAlboyz5-Oct-18 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.