Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
CamperBot
@camperbot
:star2: 3891 | @khaduch |http://www.freecodecamp.org/khaduch
Aditya
@ezioda004
@tundeiness In Url U should be lowercase
tundeiness
@tundeiness
@ezioda004 really ? case issues? sigh...let me try that please.
@ezioda004 not logging any data
Aditya
@ezioda004
@tundeiness Any error in the console?
     var webLink = "https://wind-bow.glitch.me/twitch-api/channels/thijsnl"

    $.ajax ({
       url :webLink,
          type:"GET",
          dataType:"json",
          success : function (data){
            console.log( data );
         }
    });
This seems to be working
tundeiness
@tundeiness
@ezioda004
Failed to load https://wind-bow.gomix.me/twitch-api/users/ESL_SC2: Redirect from 'https://wind-bow.gomix.me/twitch-api/users/ESL_SC2' to 'https://wind-bow.glitch.me/twitch-api/users/ESL_SC2' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s.codepen.io' is therefore not allowed access.
@ezioda004 this worked
"https://wind-bow.glitch.me/twitch-api/users/";

@ezioda004

https://wind-bow.gomix.me/twitch-api/users

this has issues.

Aditya
@ezioda004
Yeah, the other one is problematic, atleast the other one is working!
Rajat
@rajataudichya
THE LOOP IS NOT WORKING HERE

function destroyer(arr) {
  // Remove all the values
  var farg = arguments[0];

  var one = arguments.length;

  var fArr= [];


  for(var i = 1; i > 3; i++){

    var dot = i;
   fArr.push(dot);
      }

    return fArr;  





}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
data is not being pushed in fArr variable
ehutchllew
@ehutchllew
@rajataudichya you set your initial iteration to i=1, but the condition is that the loop will only run when i > 3.
alpox
@alpox
@rajataudichya var i = 1; i > 3; i++ you loop as long as i is bigger than 3 - which it never is, so the loop is never entered. (i starts with 1 which is smaller than 3)
Rajat
@rajataudichya
OMG!!! that common mistake again
sorry guys....
Ken Haduch
@khaduch
@ConnectCodes - thanks - cheers to you and chat with you again soon... happy coding, too! :)
CamperBot
@camperbot
khaduch sends brownie points to @connectcodes :sparkles: :thumbsup: :sparkles:
api offline
Markus Kiili
@Masd925
@khaduch Yes, I was talking about just forEach (vs for).
NikolaNbgd
@NikolaNbgd

Hi guys, I need quick help, I am trying to valite input for UK phone number, like this

pattern="^\+?[1-9]\d{1,14}$"

but I got this error in console

Pattern attribute value ^+?[1-9]d{1,14}$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^+?[1-9]d{1,14}$/: Nothing to repeat

Does anyone know why?

Ken Haduch
@khaduch
@Masd925 - yes, but I haven't used .some() and .every() very often, so it was good to be reminded of them, and in a way it is a looping method that "breaks" the loop on a condition. I figured that you already knew, probably more of a helpful reminder for me than for you... :)
@rajataudichya - http://pythontutor.com/javascript.html - did you try that site? It's a great debugging tool!
Rajat
@rajataudichya
@khaduch actually I didn't I am busy completing the challenges
Will try it soon
Blauelf
@Blauelf

@NikolaNbgd You probably didn't escape the backslashes. Like "^\\+?[1-9]\\d{1,14}$".

Gets weird if you want to include a literal backslash, that would have to be escaped for RegExp, and also for string, so four backslashes in code. A regex matching \, so /\\/, as a string is "\\\\".

Jason Luboff
@JLuboff
:wave:
Markus Kiili
@Masd925
:sparkles:
Jason Luboff
@JLuboff
@Masd925 Whats up
Markus Kiili
@Masd925
@JLuboff Finishing up the old job. Learning Clojure.
How about you?
Rajat
@rajataudichya
Can someone please explain me this I am trying to solve seek and destroy

function destroyer() {
var arr = arguments[0];
var params = [];

// Create array of all elements to be removed
for (var k = 1; k < arguments.length; k++)
params.push(arguments[k]);

// return all not matching values
return arr.filter(function(item) {
return params.indexOf(item) < 0;
});
}

console.log(destroyer([1, 2, 3, 1, 2, 3], 2, 3));

```jsfunction destroyer() {
var arr = arguments[0];
var params = [];

// Create array of all elements to be removed
for (var k = 1; k < arguments.length; k++)
params.push(arguments[k]);

// return all not matching values
return arr.filter(function(item) {
return params.indexOf(item) < 0;
});
}

console.log(destroyer([1, 2, 3, 1, 2, 3], 2, 3));```

tundeiness
@tundeiness
is there any other way to get streaming status in the twitchtv API without using .../streams/username ?
Jason Luboff
@JLuboff
@Masd925 I thought you were already done with your old job? Just got into work...it's friday which is nice
@tundeiness I haven't looked at the API in quite a while, but from what I remember, no, you have to use the two different end points to get different information
tundeiness
@tundeiness
@JLuboff wow..meaning two API calls?
Jason Luboff
@JLuboff
@tundeiness Correct
Christopher McCormack
@cmccormack
@rajataudichya heya - put the backticks on their own line so we can read it easier:
```
code
```
tundeiness
@tundeiness
@JLuboff :(
Jason Luboff
@JLuboff
@tundeiness It aint that bad ;)
tundeiness
@tundeiness
@JLuboff how to pull that off....:(
Markus Kiili
@Masd925
@JLuboff About two weeks still to do and then two weeks of vacation/studying before the new job starts.
Rajat
@rajataudichya
Chris I am chatting from my cellphone
Jason Luboff
@JLuboff
@tundeiness You just need to make two API calls (two ajax/json/fetch/whatever)
tundeiness
@tundeiness
@JLuboff roight....I can see me for loop breaking things
Christopher McCormack
@cmccormack
@rajataudichya ok what's your question? It seems to be working but I don't 100% remember the exercise - are you just removing all additional arguments after the first argument from the first argument array?
Markus Kiili
@Masd925
@JLuboff There is quite fast paced two month training period at start, heading for full-stack development. Should be fun.