Click here to Skip to main content
15,885,953 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Sorting an array in typescript, based on a search query Pin
Wishe199129-Sep-19 23:23
Wishe199129-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
mveRichard MacCutchan28-Aug-19 21:32 
GeneralRe: Javascript object comparison Pin
A_Griffin20-Sep-19 11:13
A_Griffin20-Sep-19 11:13 
GeneralRe: Javascript object comparison Pin
Richard MacCutchan20-Sep-19 20:47
mveRichard MacCutchan20-Sep-19 20:47 
QuestionCopying Text from Web Message Box/pop-Up Window Pin
Member 1456795025-Aug-19 2:07
Member 1456795025-Aug-19 2:07 
AnswerRe: Copying Text from Web Message Box/pop-Up Window Pin
Richard MacCutchan25-Aug-19 4:25
mveRichard 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
Member 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
mveRichard 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
rinave19-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
BobInNJ7-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 
QuestionDelete consumer Pin
Member 1453057115-Jul-19 0:09
Member 1453057115-Jul-19 0:09 
AnswerRe: Delete consumer Pin
Richard MacCutchan15-Jul-19 0:42
mveRichard 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
Jammer29-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
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:37 
Questionhow to open word file in client side Pin
Member 1447396626-Jun-19 1:32
Member 1447396626-Jun-19 1:32 
AnswerRe: how to open word file in client side Pin
Richard MacCutchan26-Jun-19 1:45
mveRichard MacCutchan26-Jun-19 1:45 
Question(SOLVED) How to activate button on mouse press? Pin
samflex6-Jun-19 4:39
samflex6-Jun-19 4:39 
AnswerRe: How to activate button on mouse press? Pin
Richard Deeming6-Jun-19 5:39
mveRichard Deeming6-Jun-19 5:39 

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.