Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
James Diaz
@clanmaster
what is the use of ? in that line?
Ken Haduch
@khaduch
@clanmaster - look up the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator - Conditional ternary operator. It is a concise way to write an "if then else" statement.
James Diaz
@clanmaster
thanks @khaduch
CamperBot
@camperbot
clanmaster sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3770 | @khaduch |http://www.freecodecamp.org/khaduch
Matej BoĆĄnjak
@mbosnjak01
if(this.quitScores.length > 0) { this.quizScores.join(","); } else { return "No scores yet"; }
Ken Haduch
@khaduch
so if the length > 0 you do the first action immediately after the ? otherwise you do the action after the :
Greg Gordon
@greggordoncode_twitter
https://codepen.io/papageg/pen/yvGYQM?editors=1100 under my contact me section i want to have first name last name a country going top to bottom then have the message to the right im little confused on the way to do it
Manan Shah
@mananshah51
var count = 0;

function cc(card){
  // Only change code below this line
  switch(card){
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
      count++;
      answer = count + " " + "Bet";
      break;

    case 7:
    case 8:
    case 9:
      count = count + 0;
      answer = count + " " + "Hold";
      break;

    case 10:
    case 'J':
    case 'Q':
    case 'K':
    case 'A':
      count--;
      answer = count + " " + "Hold";
  }
  return answer;
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
Can someone help me out with the Counting Card Challenge ?
Stephen James
@sjames1958gm
@mananshah51 The instructions say that Bet vs Hold depends on the value of count - but you are not checking the value of count
Manan Shah
@mananshah51
Can I go for if else look to check the count ?
Stephen James
@sjames1958gm
@mananshah51 Yes, and you can do it once after the switch statement
Manan Shah
@mananshah51
@sjames1958gm Will I be needing 3 if else loop statements?
Stephen James
@sjames1958gm
@mananshah51 If you put it after the switch , before you return, you only need one
Riadh
@KWFE
@khaduch thank you sir as i told you the project is okay but when i try to change the global tag RTL it break
CamperBot
@camperbot
kwfe sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3771 | @khaduch |http://www.freecodecamp.org/khaduch
Manan Shah
@mananshah51
@sjames1958gm ```
var count = 0;

function cc(card){
  // Only change code below this line
  switch(card){
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
      count++;
      break;

    case 7:
    case 8:
    case 9:
      count = count + 0;
      break;

    case 10:
    case 'J':
    case 'Q':
    case 'K':
    case 'A':
      count--;
      break;
  }

  if (count <= 0){
    return (count +" "+ "Bet");
  }
  else {
    return (count + " " + "Hold");
  }
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
the fbi agent watching you
@krennical_twitter
I'm doing the Profile Lookup challenge and for some reason it's turning No Such Contact for contacts outside of Akira, like Sherlock. Here's my code:
https://repl.it/@rumlows/WheatForsakenCoin . Any idea why this is happening?
@mananshah51 I believe you need if (count >= 1) instead of (count <= 0)
Manan Shah
@mananshah51
@krennical_twitter Yeah I was able to figure that out.
the fbi agent watching you
@krennical_twitter
Nice!
Manan Shah
@mananshah51
@krennical_twitter Thanks for the help though.
CamperBot
@camperbot
mananshah51 sends brownie points to @krennical_twitter :sparkles: :thumbsup: :sparkles:
api offline
Stephen James
@sjames1958gm
@mananshah51 :+1:
Manan Shah
@mananshah51
@sjames1958gm Thank you so much.
CamperBot
@camperbot
mananshah51 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9054 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
@mananshah51 No problem
Donnie
@Donnie-D
hi my code is returning a quote but it doesn't change it. Upon pressing the button again, it returns the same quote. Could anyone point out where it needs correction please?
https://codepen.io/Donnie-D/pen/BJBoZd
Gulsvi
@gulsvi
@Donnie-D The response is getting cached. You can disable cache in getJSON/Ajax with:
$.ajaxSetup({cache: false})
Or, just add a random number after the callback= in your URL and it will treat it like a different request every time you call the API
Manan Shah
@mananshah51

// Setup
function phoneticLookup(val) {
  var result = "";

  // Only change code below this line
  var lookup = {  
   "alpha": "Adams",
   "bravo": "Boston",
   "charlie": "Chicago",
   "delta": "Denver",
   "echo": "Easy", 
   "foxtrot": "Frank"
  };

  // Only change code above this line
  return result;
}

// Change this value to test
phoneticLookup("charlie");
Where am I going wrong ?
Using Objects for Lookup is the Challenge.
neovks
@neovks
hey, I have an issue on codepen (portfolio project) one of my border isn't working when I enable bootstrap 4 (took me long enough to figure it was bootstrap's fault...) is it a known issue ? any way to fix ? I can share codepen link if needed thanks
Manan Shah
@mananshah51
@neovks Can you please share the CodePen link ?
neovks
@neovks
sure, so the border in question is the bottom one (the one around twitch) it's supposed to be thick etc but I can't change it as it is (.border in css)
Manan Shah
@mananshah51
@neovks you want the border to be thick ?
neovks
@neovks
well I want it to be like in my css part
.border {
border-style: solid;
border-width: 5px;
border-color: black;
border-radius: 5px;
width: 200px;
background-color: white;
margin: auto;
}
but none of this works except if I disable bootstrap 4
Gulsvi
@gulsvi
@neovks .border is a reserved utility class in bootstrap. Name your class something else, like .logo-border and it will work.
https://github.com/twbs/bootstrap/blob/v4-dev/dist/css/bootstrap.css#L6354
Ken Haduch
@khaduch
@neovks - you probably just have a conflict with a bootstrap class. Oops - @gulsvi just posted what I was going to say - pick a different name for the class and use that instead! ;)
@KWFE - I can see a problem when the dir="rtl" is added, even with the pages in English - as long as I'm seeing the same things that you are. The radio button circle is colliding with the text, so I'm trying to reconfigure the HTML, it is generated by the javascript code and I kind of have it working, just trying to figure out one other thing that I think should be working but doesn't seem to be.
neovks
@neovks
AHH !! DANG !thanks a lot!