Click here to Skip to main content
14,333,747 members

JavaScript

 
GeneralRe: Sorting an array in typescript, based on a search query Pin
Wishe199129-Sep-19 23:23
memberWishe199129-Sep-19 23:23 
QuestionJavascript object comparison Pin
Anandkumar Prajapati28-Aug-19 19:24
professionalAnandkumar Prajapati28-Aug-19 19:24 
AnswerRe: Javascript object comparison Pin
Richard MacCutchan28-Aug-19 21:32
protectorRichard MacCutchan28-Aug-19 21:32 
GeneralRe: Javascript object comparison Pin
A_Griffin20-Sep-19 11:13
memberA_Griffin20-Sep-19 11:13 
GeneralRe: Javascript object comparison Pin
Richard MacCutchan20-Sep-19 20:47
protectorRichard MacCutchan20-Sep-19 20:47 
QuestionCopying Text from Web Message Box/pop-Up Window Pin
Member 1456795025-Aug-19 2:07
memberMember 1456795025-Aug-19 2:07 
AnswerRe: Copying Text from Web Message Box/pop-Up Window Pin
Richard MacCutchan25-Aug-19 4:25
protectorRichard MacCutchan25-Aug-19 4:25 
QuestionHow do I a value from one function and pass it through to another for use Pin
Member 1028754813-Aug-19 11:13
memberMember 1028754813-Aug-19 11:13 
<SCRIPT language="javascript" type="text/javascript">



function salary()


{
a=Number(document.calculator.hourlyrate.value);

b=Number(document.calculator.hoursworked.value);

c=Number(document.calculator.weeks.value);

d=(a*b*c);

document.calculator.total.value=d;
}


function points()

{

a=Number(document.calculator.age.value);

b=Number(document.calculator.yos.value);

c=((a*2)+b);

document.calculator.total2.value=c;
if (c < 60) {
	document.calculator.EmployerContribution.value="You are at 1% Employer Contribution";
	}
	else if (c > 60 && c < 89) {
	document.calculator.EmployerContribution.value="You are at 3% Employer Contribution";
	}
	else if (c > 90 && c < 119) {
	document.calculator.EmployerContribution.value="You are at 5% Employer Contribution";
	}
	else if (c >= 120) {
	document.calculator.EmployerContribution.value="You are at 7% Employer Contribution";
	}
}


</SCRIPT>


I am trying to take the value from for the salary() function and use it with the points function().
AnswerRe: How do I a value from one function and pass it through to another for use Pin
Richard MacCutchan13-Aug-19 21:33
protectorRichard MacCutchan13-Aug-19 21:33 
AnswerRe: How do I a value from one function and pass it through to another for use Pin
rinave19-Aug-19 15:58
memberrinave19-Aug-19 15:58 
AnswerRe: How do I a value from one function and pass it through to another for use Pin
ZurdoDev21-Aug-19 5:36
professionalZurdoDev21-Aug-19 5:36 
GeneralRe: How do I a value from one function and pass it through to another for use Pin
Richard Deeming21-Aug-19 8:26
mveRichard Deeming21-Aug-19 8:26 
AnswerRe: How do I a value from one function and pass it through to another for use Pin
ZurdoDev21-Aug-19 5:35
professionalZurdoDev21-Aug-19 5:35 
QuestionComparison's in JavaScript Pin
BobInNJ7-Aug-19 10:57
memberBobInNJ7-Aug-19 10:57 
AnswerRe: Comparison's in JavaScript Pin
ZurdoDev7-Aug-19 11:10
professionalZurdoDev7-Aug-19 11:10 
AnswerRe: Comparison's in JavaScript Pin
Anandkumar Prajapati19-Sep-19 18:55
professionalAnandkumar Prajapati19-Sep-19 18:55 
QuestionMessage Closed Pin
30-Jul-19 11:57
memberSmithMasterJerry30-Jul-19 11:57 
QuestionDelete consumer Pin
Member 1453057115-Jul-19 0:09
memberMember 1453057115-Jul-19 0:09 
AnswerRe: Delete consumer Pin
Richard MacCutchan15-Jul-19 0:42
protectorRichard MacCutchan15-Jul-19 0:42 
QuestionRe: Delete consumer Pin
ZurdoDev7-Aug-19 11:08
professionalZurdoDev7-Aug-19 11:08 
QuestionLooking for Bootstrap, TypeScript,Vue and Vue Router Guide to Building a Navigation Bar Pin
Jammer29-Jun-19 2:45
memberJammer29-Jun-19 2:45 
AnswerRe: Looking for Bootstrap, TypeScript,Vue and Vue Router Guide to Building a Navigation Bar Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:37
mveAfzaal Ahmad Zeeshan30-Jul-19 5:37 
Questionhow to open word file in client side Pin
Member 1447396626-Jun-19 1:32
memberMember 1447396626-Jun-19 1:32 
AnswerRe: how to open word file in client side Pin
Richard MacCutchan26-Jun-19 1:45
protectorRichard MacCutchan26-Jun-19 1:45 
QuestionMessage Closed Pin
16-Jun-19 21:53
memberMember 1447282216-Jun-19 21:53 

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.