Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
start with putting a fish on in a random spot
get a random x and y
Math.floor(Math.random() * 20)) will give you a number between 0 and 19
you can console.log it to see for yourself
var random = Math.floor(Math.random() * 20));
@moT01 im working on it but things just dont add up :(
hi is there anyone who can help make my horizontal navigation bar be in straight?..getting that icon in the same line a others
@ogwel5 i would use flexbox
you can align things vertically
Eric Weiss
if you are recreating the google homepage, you can use the icons google provides, https://material.io/icons/
apps and notifications
@moT01 no luck maan :(
why not
can you make a random number?
but then to make it into a fish with all the shapes and coordinates....it just doesnt work out @moT01
@moT01 @eweiss17 thanks..it has workedd
ogwel5 sends brownie points to @mot01 and @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 989 | @mot01 |http://www.freecodecamp.org/mot01
:cookie: 610 | @eweiss17 |http://www.freecodecamp.org/eweiss17
Barbara Pentoney
@sjames1958gm are you still there...??
Christopher Susi
Hey everyone, if anyone could take a look at this TicTacToe game I would greatly appreciate it. I’m having an issue for one player I can’t seem to get the code just right for the computer to always win. https://codepen.io/chrisandsuch/pen/XZRYZE
@krckyboy You might try one of the sites listed here: https://github.com/neutraltone/awesome-stock-resources#videos
li.right img {
  vertical-align: middle;
@ogwel5 still around?
no offense but your ai is a bit dumb on your tictactoe
oh nvm
@flyfishingbarbara Instead of messing around with global variables, make your buttons hyperlinks (keep the class names the same so they still look like buttons). Then you can just update the href= value for the twitter link every time someone clicks "Get Quote"

For example, with this HTML:

<a id="tweetIt" class="btn btn-primary text-light">Tweet It</a>

Update the href with:

$("#tweetIt").attr("href", tweetUrl);
Do everything in your getJSON callback function so the data[0] is in scope
(be sure to add target="_blank" for codepen)
Hey all, I'm looking for a good, offline IDE that I can use to collaborate with friends on HTML/CSS docs...Hopefully something that allows me to either preview the code or launch it. I tried Notepad++ with NppDocShare however the plugin is apparently no longer compatible with recent versions. I also tried CodeShare.io ans was not at all impressed... Any ideas?
@LOVE2JOKEBRO Id consider learning git, if your planning to be a developer, its the reason why there isn't a be-all-endall collaborative IDE. But otherwise I heard Atom recently added support for realtime collaboration
hey guys im getting the dom element but im getting undefined when i specify the index. so weird. but on the others im getting the result.
   const submitBtn = document.getElementsByTagName('button');
    console.log(submitBtn[0]) // returns undefined
    const closeBtn = document.getElementsByClassName('fa-times');
    console.log(closeBtn[0]); // returns undefined
  const submitBtn = document.getElementsByTagName('button');
console.log(submitBtn) // returns an array
const closeBtn = document.getElementsByClassName('fa-times');
console.log(closeBtn); // returns an array
Hi all, any feedback on my first project would be much appreciated. https://codepen.io/HerbiScript/pen/zRdwoN?editors=1100 - Just started coding yesterday and know I can improve my efficiency and cleanliness. Also curious if I should jump into some JavaScript before attempting to build my portfolio? Thank you!
Ken Haduch
@artoodeeto - have you posted a URL for your code?
Claudio Restifo
Weird, do you have a snippet or a pen where we can see the actual code? @artoodeeto
@Marmiz @khaduch wait bro its on my local. ill create a pen. give me 3mins thanks so much. im confused
artoodeeto sends brownie points to @marmiz and @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1159 | @marmiz |http://www.freecodecamp.org/marmiz
:star2: 3734 | @khaduch |http://www.freecodecamp.org/khaduch
@khaduch @Marmiz here you go bro. thank you so much
artoodeeto sends brownie points to @khaduch and @marmiz :sparkles: :thumbsup: :sparkles:
api offline
api offline