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
matty001
@matty001
@bradtaniguchi thanks again, I guess i'll just try out both and see the best results
CamperBot
@camperbot
matty001 sends brownie points to @bradtaniguchi :sparkles: :thumbsup: :sparkles:
api offline
Brad
@bradtaniguchi
@matty001 Yea that would be the best, np :D
Ken Haduch
@khaduch
@KWFE - I'm playing around with the site, I think that the structure of the HTML has to be changed? I won't be able to work on it any more for a few hours, but I'll try to get back to you if I make a breakthrough... unless you let me know that you've found a solution.
James Diaz
@clanmaster
Good day all!
for this line of code:
svar scores = this.quizScores.length > 0 ? this.quizScores.join(","): "No Scores Yet";
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)