Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 10 of 10
Search took 0.05 seconds.
Search: Posts Made By: 123jo
Forum: JavaScript programming 12-28-2012, 04:12 PM
Replies: 11
Views: 436
Posted By 123jo
Thanks for your answers! But, @Old Pedant, I...

Thanks for your answers! But, @Old Pedant, I don't really understand what does:

function sortOnNumeric( a, b )
{
return Number( b.replace(/\D/g,"") ) - Number( a.replace(/\D/g,"") );
}

And I...
Forum: JavaScript programming 12-28-2012, 03:48 AM
Replies: 11
Views: 436
Posted By 123jo
Question Need help to sort an array of strings and numbers

Hi, I need to sort an array of strings like ["DOWNc18","OUTc11","INc21","UPc0","SIDEc33"] in descending order of the numbers of each strings.
At each step of my function, I add a string similar to...
Forum: JavaScript programming 12-13-2012, 02:18 AM
Replies: 15
Views: 532
Posted By 123jo
Anyone has an idea of how I can get the last...

Anyone has an idea of how I can get the last integer of a string? Parsing doesn't seem to work...
Forum: JavaScript programming 12-13-2012, 01:06 AM
Replies: 15
Views: 532
Posted By 123jo
Thanks Devnull69, I almost got it! :) I have a...

Thanks Devnull69, I almost got it! :) I have a tiny problem left, how can I extract the 1? When I try with parseInt(s) it automatically takes 14...
I tried to extract it with s[i] where i =...
Forum: JavaScript programming 12-12-2012, 10:20 PM
Replies: 15
Views: 532
Posted By 123jo
I can't use neither eval or dynamic...

I can't use neither eval or dynamic programming... The key of this exercise is to use recursion.
Forum: JavaScript programming 12-12-2012, 09:36 PM
Replies: 15
Views: 532
Posted By 123jo
Will it fix the problem if I change the parsing...

Will it fix the problem if I change the parsing for
var stringNum += parseInt(t, 10);
Forum: JavaScript programming 12-12-2012, 08:02 PM
Replies: 15
Views: 532
Posted By 123jo
Maybe I wasn't clear enough... :confused: I...

Maybe I wasn't clear enough... :confused: I learned how to go through my table by using recursivity so I wanted to apply the same method for a string, but I'm still stuck.

s is the string (for...
Forum: JavaScript programming 12-12-2012, 01:23 PM
Replies: 15
Views: 532
Posted By 123jo
Question How to go through a table using recursivity?

Hi guys, I need to convert a table of strings numbers (like 10x4+5x2+...) into one integer using recursivity.
I need to change that kind of code:

for(var i=0; i<myArray.length; i++) { ...
Forum: JavaScript programming 12-01-2012, 04:05 PM
Replies: 3
Views: 503
Posted By 123jo
Thanks for your help guys.

Thanks for your help guys.
Forum: JavaScript programming 12-01-2012, 01:59 AM
Replies: 3
Views: 503
Posted By 123jo
Question JavaScript Program - Need your help!!

So I'm new at programming (just so you know) and I have a problem with my program. I want to create a function that print Pascal's triangle (centered). I have few problems with the spacing and...
Showing results 1 to 10 of 10

 
Forum Jump

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