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
but if we use Bootstrap 4 then we can't the style of that tag
either custom css or in Bootstrap
it is not changing quickly
thanks @DarrenfJ for all your help
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2448 | @darrenfj |http://www.freecodecamp.org/darrenfj
i think in that challenge the result will be same why the result is different ?
hey all
I need a little help
Sweet Coding :)
@eabg ask away
not understanding what is the missing link in this code:
Screen Shot 2018-04-03 at 12.11.01 AM.png
Screen Shot 2018-04-03 at 12.11.18 AM.png
Sweet Coding :)
@eabg it should be $('.btn').on('click'....
you're missing . before btn
oh man really? let me check it out
Sweet Coding :)
and also, in your html, there is no element that has class="btn"
so it's not going to work either way
Do you want to attach event handlers to all your buttons?
From the html you've shared, you need to do
I orginally had button with no luck
so I tried that out and nothing
Sweet Coding :)
what do you want to happen when you click the button?
The event handler doesn't look right to me
so im just trying to add some css changes to boxes..later do animate
Sweet Coding :)
With your code, let's say you click on the button 1. Then the clickButtonId will be btn1
and your selector will be#box1btn1
and there is no element with id="box1btn1"
let me show you this. this was an earlier test and it was working before:
Screen Shot 2018-04-03 at 12.38.45 AM.png
I wanted to start over cause an element got lost and i couldnt get it working again
Sweet Coding :)
@eabg you're better off using data attribute to target specific box
I'll show you an example
Ann Kaniga
@eabg did u try any debug?
in the console? or....
Ann Kaniga
yes, is there any red line in console?
i mean browser console
Sweet Coding :)
@eabg Check this out
yeah.. so its just having a problem with the ending script tag
ill check it out and let you know
okay yeah I will start over using this method. it seems a lot easier to manage and read
@SweetCodingInc :+1:
Sweet Coding :)
@eabg :+1:
John Hawke
function diffArray(arr1, arr2) {
    var newArr = arr1.concat(arr2);
    newArr.filter(function(index) {
        if (!arr1.includes(index) || !arr2.includes(index)) {
            return newArr;

diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);
can someone tell me whats wrong with this?
it always returns the concatenated array of the two
@lolativiwe_twitter .filter() returns a new array and doesnt mutate the original one so you're returning the concatenated array from the 2nd line
John Hawke

oh lol...

newArr = newArr.filter(....

this worked