Click here to Skip to main content
15,886,059 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: jQuery Question Pin
dusty_dex26-Apr-13 13:28
dusty_dex26-Apr-13 13:28 
GeneralRe: jQuery Question Pin
Richard Deeming29-Apr-13 2:31
mveRichard Deeming29-Apr-13 2:31 
GeneralRe: jQuery Question Pin
dusty_dex29-Apr-13 3:28
dusty_dex29-Apr-13 3:28 
GeneralRe: jQuery Question Pin
Jasmine25011-May-13 8:27
Jasmine25011-May-13 8:27 
AnswerRe: jQuery Question Pin
Richard MacCutchan26-Apr-13 22:32
mveRichard MacCutchan26-Apr-13 22:32 
AnswerRe: jQuery Question Pin
Graham Breach26-Apr-13 23:00
Graham Breach26-Apr-13 23:00 
AnswerRe: jQuery Question Pin
Member 5654516-May-13 0:44
Member 5654516-May-13 0:44 
QuestionJS Question Pin
Hakan Bulut18-Apr-13 3:31
Hakan Bulut18-Apr-13 3:31 
Documentation The lucky numbers, I want to compare the values ​​that are encountering the same. Anyone can help on this topic?


C#
    .
    .
    if(arrLot[i] == arrIns[18])
    if(arrLot[i] == arrIns[19]){
        lucky[add++] = arrLot[i];
        if(lucky[add++] = arrLot[i]) {
            lucky[add++] = gb;
        }
    }
}
var gb = getBNS();
function getBNS()
{
    var mf = 0;
    return Math.floor(mf+=1);
}

do{
    if(gb.mf > 1){
        lucky[ct].sort(function(a,b){
        return a-b}); // end sort
    }
    document.write(lucky[ct] + " : " + gb + "<BR>");
    ct++;
}while(ct<17);


mesela burada 18 adet sayı elemanlarını kendi aralarında karşılaştırdıktan sonra hangi sayının ne kadar karşılaştığını hesaplayan ve dökümanlayan bir kod yazmaya çalışıyorum. Tanımla problemi var. mesela şöyle bir çıktı veriyor:
<pre>
Undefined : 1
Undefined : 1
Undefined : 1
Undefined : 1
C#
var arrIns  = [
"1","21","24","28","42","48",
"9","13","14","16","24","49",
"3","18","19","25","44","45"
];


Burada çıktı
VB
24 : 2
1  : 1
21 : 1

olmalı..

modified 18-Apr-13 13:14pm.

AnswerRe: JS Question Pin
Sandeep Mewara18-Apr-13 4:55
mveSandeep Mewara18-Apr-13 4:55 
GeneralRe: JS Question Pin
Hakan Bulut18-Apr-13 6:52
Hakan Bulut18-Apr-13 6:52 
AnswerRe: JS Question Pin
dusty_dex18-Apr-13 6:18
dusty_dex18-Apr-13 6:18 
AnswerRe: JS Question Pin
Dennis E White18-Apr-13 7:34
professionalDennis E White18-Apr-13 7:34 
GeneralRe: JS Question Pin
dusty_dex18-Apr-13 7:42
dusty_dex18-Apr-13 7:42 
GeneralRe: JS Question Pin
Hakan Bulut19-Apr-13 2:32
Hakan Bulut19-Apr-13 2:32 
AnswerRe: JS Question Pin
dusty_dex18-Apr-13 7:41
dusty_dex18-Apr-13 7:41 
GeneralRe: JS Question Pin
Hakan Bulut18-Apr-13 20:59
Hakan Bulut18-Apr-13 20:59 
GeneralRe: JS Question Pin
dusty_dex18-Apr-13 21:36
dusty_dex18-Apr-13 21:36 
GeneralRe: JS Question Pin
Hakan Bulut18-Apr-13 22:10
Hakan Bulut18-Apr-13 22:10 
GeneralRe: JS Question Pin
dusty_dex18-Apr-13 22:14
dusty_dex18-Apr-13 22:14 
GeneralRe: JS Question Pin
Hakan Bulut19-Apr-13 2:30
Hakan Bulut19-Apr-13 2:30 
GeneralRe: JS Question Pin
dusty_dex19-Apr-13 3:32
dusty_dex19-Apr-13 3:32 
GeneralRe: JS Question Pin
Hakan Bulut19-Apr-13 4:12
Hakan Bulut19-Apr-13 4:12 
GeneralRe: JS Question Pin
dusty_dex19-Apr-13 4:28
dusty_dex19-Apr-13 4:28 
GeneralRe: JS Question Pin
dusty_dex19-Apr-13 4:40
dusty_dex19-Apr-13 4:40 
GeneralRe: JS Question Pin
Hakan Bulut19-Apr-13 5:57
Hakan Bulut19-Apr-13 5:57 

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.