Jump to content

L8V2L

Members
  • Posts

    788
  • Joined

  • Last visited

Everything posted by L8V2L

  1. L8V2L

    Creating php project

    I haven't post JavaScript.... You must be talking about my signature. That's my signature below.
  2. L8V2L

    Creating php project

    I suspect that a while ago. JustSomeGuy told me ones that he was ask by a Microsoft representative to relay a message.W3s have sold their soul to the devil(Microsoft) for a few extra dollar.They have sold out!W3S!!!!!!! NOOOOOOOOOOO!!!!!!!!!!
  3. L8V2L

    Creating php project

    ... You might do better asking the web for this one. One might get back on you with this, but the web will get back to you faster and surer.
  4. Please still answer my question that is posted above me.--------------------------------------------------------------- //whats the different between this:var foo = function(args){ var i = 0, add = 0; for(;arguments[i]{ return(add += arguments[i]); i++; }};var obj = {"0":1,"1":2,"2":3,"3":4};var bar = foo.bind(obj,obj["0"],obj["1"],obj["2"],obj["3"]);bar(); // 1//And this:var foo = function(args){ var i = 0, add = 0; for(;arguments[i]{ (add += arguments[i]); i++; } return(add);};var obj = {"0":1,"1":2,"2":3,"3":4};var bar = foo.bind(obj,obj["0"],obj["1"],obj["2"],obj["3"]);//bar(); //10/*is it cause in the first one, after obe itreation, the loop is force to exit do to the return statment, returning only the first numerical value pass to the add variable?*/
  5. I'm speaking when the stack reach a level that doesn't hold true. I speak of... bar(2); it'll call it self two time, in that second call to it self, it no longer hold true against the condition that is tested against it; as it no longer hold turn the condition that test if it's equal to 0 will run it's block of code causing the return statement in that block of code to return 1, where is that one being return??? Where is that one ones the condition no longer hold false, where is that one? That one that is return. Where is it.
  6. Is it cause that the function recursive will never end, unless a condition is meet that will stop the recursive. But as I said again, why doesn't the else if condition return statement value 1 when it is equal to zero?
  7. ....tracing the code:Check to see if arguments'" property is a numerical value is less than 0...False, proceed to next statement/expressionCheck to see if arguments'" property is a numerical value is equal 0...False, proceed to next statement/expressionReturn statement, evaluate expression, and return the value.... I don't know what happen after that truly. I guess, it'll repeat it self until it equal zero or negative one if I was decrementing by a higher numerical value than one. Then return the value back to the caller, but how? And what of returning one? That's what end the excution is that statement to be true.
  8. So why don't it return 1? Or if I was decrementing by a value higher than one, why don't it return -1?Why do it return the value of the expression? (Even know expression evaluate to a value) when it recursion by invoking it self, shouldn't it return 1, or -1 if decrementing by a numeral value higher than 1.
  9. If I put a if else condition in to check for 1, 0 or less, It'll work. Why is that?I display this happening with two of the same code, but with just different names.
  10. Ha! How nice of you to explode, then explain why.I rather read a book anyway now that my feet are soak. But I will always return back to the foundation. Not say I feel as if I could move on, I'm merely expanding my self on the language with enlightenment from books.
  11. Why does it stack over flow when condition is taking out: var bar = function(num){ return (num + arguments.callee(num - 1));}var result = bar(2);console.log(result);//stack exceededvar foo = function(bar){ if(bar < 0){ return -1; } else if(bar === 0){ return 1;} else{ return(bar + arguments.callee(bar - 1)); }}foo(2);// output 4Extra:var bar = function(args) { var err;var actual = arguments.length; var expected = arguments.callee.length; switch(actual != expected){ case true:{throw err = new Error("Wrong number of arguments: expected: " + expected + "; actually passed " + actual); break;}case false:{if(arguments[0] < 0){ return -1;}else if(arguments[0] === 0){return 1;}else{return (arguments[0] * arguments.callee(arguments[0] -1));break;}}}}bar(99);
  12. I don't understand! You poeple are lazy stupid! There is not reason why they should have other programming lanuage on this!JAVA for one!And there is no reason why they shouldn't have more example on this site too!Don't you want money?!?!?You can just copy and paste... Like you already do!Even if it's just am introduction to the language, that's good, like the rest of this sure is anyway. MORE!!!!!!!!!!!!!!
  13. Sorry to say that this forums does not support flash. But utilize might get better help on the site it self; adobe's site that is.
  14. Why is there so much hype?
  15. It'll be great if you could fill the xmls tutorial with example. Considering how short most of them all. Espically xslt, xquery, xpath, etc.
  16. Have you consider JSON? "use strict";var gameStats = { player1date:[ {year:2014, month:1, day:1} ]}gameStats.player1date[0].year;//2014
  17. > Unicode number: U+003C HTML-code: < Entity: < <Unicode number: U+003E HTML-code: > Entity: >
  18. truncate the pages on these two links: http://www.w3schools.com/js/js_statements.asphttp://www.w3schools.com/js/js_syntax.asp and put them in the reference as one label expression and statment above object, or better yet and seperate pages and add operation underneath them. the below are just me being me! http://www.w3schools.com/js/js_comments.asp add this two statement too, but turncate it very. http://www.w3schools.com/js/js_variables.asp and this too: http://www.w3schools.com/js/js_variables.asp <~~ and that too. Turncate it and add it.
  19. xml is making your own tag, you can shorten iit down. I just gave you an example of what is said to be the best way to do it. What langauge do you prefer, what programing do you practice in?
  20. L8V2L

    new to XML/XSL

    Do a small one cell example , then simple repeat the process.
  21. Here's an example: <gameStats> <gamer> <date> <year>2014</year> <month>1</month> <day>1</day> </date> <player>1</player> </gamer></gameStats>
  22. Try it in JavaScript. Get the element by tag or id and connect the on lick button to it.
×
×
  • Create New...