Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2012, 05:33 PM   PM User | #1
randallmartin
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
randallmartin is an unknown quantity at this point
Project help

Hi,

I am a student in Mobile Application Design, and currently am taking classes online. Up until this past week, I have had no trouble with my coding classes, and then JavaScript was introduced. I do not know if it is the bad instructional videos or weird projects. I have spent countless hours on this project, and nothing comes out right.

I was wanting to know if someone knew where I could find a completed example of this template, so I can better understand it. I have already passed the deadline on the project, and have received a 0, but I need to understand this for this upcoming project. By the way, we were supposed to portray a story within this code. Also, I uploaded a Flowchart that was provided in the folder. Not even Lynda.com could help me...

Any help you may be able to provide would be greatly appreciated.



Code:
//procedure
var procFunction  function(argument){
	// your code completes the procedure
};

//boolean function
var booFunction = function(argument){
	//your code completes the Boolean function
};

//number function
var numFunction = function(arg1, arg2){
	//your code goes here
}

//string function
var strFunction = function(argument){
	//your code here completes the string function
};

//array function
var arrFunction = function(arrArgument, numArgument){
	// your code here completes the array function
}

//Your function calls go here
procFunction("some value"); //calls the procFunction and
							//passes some value as the argument.

numFunction(10,2); //calls the numFunction and passes 10 and 2 to
				   // the arg1 and arg2 variables in the function
Attached Files
File Type: zip JS copy.zip (33.4 KB, 11 views)

Last edited by VIPStephan; 11-04-2012 at 11:02 PM.. Reason: fixed code BB tags
randallmartin is offline   Reply With Quote
Old 11-04-2012, 10:47 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,162
Thanks: 59
Thanked 3,992 Times in 3,961 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
It would probably help tons if you bothered to tell us what each of those functions is supposed to *DO*.

For example, we see that there is a call to numFunction(10,2) but we have no idea if numFunction is supposed to add 10 and 2, multiply 10 by 2, or compare 10 vs. 2 to find the larger. Or something completely different.

If you didn't understand the assignment and can't tell us what is is, we can't very well help you.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, noob

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:05 PM.


Advertisement
Log in to turn off these ads.