check my code javascript free

Solutions on MaxInterview for check my code javascript free by the best coders in the world

showing results for - "check my code javascript free"
Lou
22 Jul 2017
1  if (str == "March" && num >= 21 && num <= 31){
2var Aries = ["Aquarius", "Pices","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Lirbra","Scorpio","Sagittarius","Capricorn"];
3for(var i = 0; i < Aries.length ; i++){
4    if ((Aries[i] != 'Pices') && (Aries[i] != 'Taurus') && (Aries[i] != 'Virgo') && (Aries[i] != 'Aries') && (Aries[i] != 'Aquarius') && (Aries[i] != 'Scorpio') && (Aries[i] != 'Capricorn') && (Aries[i] != 'Cancer')){
5 console.log(Aries[i])}
6    }
7}
8if (str == "January" && num <= 31 && num >= 20){
9var Aqurius = ["Aquarius", "Pices","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Lirbra","Scorpio","Sagittarius","Capricorn"];
10for(var i = 0; i < Aqurius.length ; i++){
11    if ((Aqurius[i] != 'Aries') && (Aqurius[i] != 'Taurus') && (Aqurius[i] != 'Virgo') && (Aqurius[i] != 'Leo') && (Aqurius[i] != 'Aquarius') && (Aqurius[i] != 'Scorpio') && (Aqurius[i] != 'Capricorn') && (Aqurius[i] != 'Cancer')&& (Aqurius[i] != 'Pices')){
12 console.log(Aqurius[i])}
13    }
14}
15      if (str == "February" && num >= 20 && num <= 29){
16var Pices = ["Aquarius", "Pices","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Lirbra","Scorpio","Sagittarius","Capricorn"];
17for(var i = 0; i < Pices.length ; i++){
18    if ((Pices[i] != 'Aries') && (Pices[i] != 'Sagittarius') && (Pices[i] != 'Pices') && (Pices[i] != 'Leo') && (Pices[i] != 'Aquarius') && (Pices[i] != 'Gemini')){
19 console.log(Pices[i])}
20    }
21}
22    if (str == "April" && num >= 21 && num <= 30){
23var Taurus = ["Aquarius", "Pices","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Lirbra","Scorpio","Sagittarius","Capricorn"];
24for(var i = 0; i < Taurus .length ; i++){
25    if ((Taurus [i] != 'Pices') && (Taurus [i] != 'Taurus') &&  (Taurus [i] != 'Aries') && (Taurus [i] != 'Aquarius') && (Taurus [i] != 'Scorpio') && (Taurus [i] != 'Libra') && (Taurus [i] != 'Leo') && (Taurus [i] != 'Gemini')  && (Taurus [i] != 'Sagittarius')){
26 console.log(Taurus [i])}
27    }
28}
29    if (str == "May" && num >= 21 && num <= 31){
30var Gemini = ["Aquarius", "Pices","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Lirbra","Scorpio","Sagittarius","Capricorn"];
31for(var i = 0; i < Gemini .length ; i++){
32    if ((Gemini [i] != 'Pices') && (Gemini [i] != 'Taurus') &&  (Gemini [i] != 'Aries') && (Gemini [i] != 'Aquarius') && (Gemini [i] != 'Scorpio') && (Gemini [i] != 'Cancer') && (Gemini [i] != 'Capricorn') && (Gemini [i] != 'Gemini')  && (Gemini [i] != 'Sagittarius') && (Gemini [i] != 'Virgo')){
33 console.log(Gemini [i])}
34    }
35}