Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
CamperBot
@camperbot
pp-makeitcount sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 970 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@PP-MakeItCount welcome
Yanuar
@Yanuarpr
help
Sorin Ruse
@sorinr
@Yanuarpr just ask the question. if we know, we'll give an answer
Yanuar
@Yanuarpr
what this mean? Mixed Content: The page at 'https://codepen.io/yanuar/pen/BQvzWr?editors=1010' was loaded over HTTPS, but requested an insecure script 'http://ip-api.com/json/?callback=jQuery311023294394844429078_1482041771423&_=1482041771424'. This request has been blocked; the content must be served over HTTPS.
Sorin Ruse
@sorinr
@Yanuarpr delete the https:// and let only codepen.io.......
Yanuar
@Yanuarpr
ok i try
Spyrantis Theodoros
@thodorisanta
@sorinr yeah, but when it returns true and when 1
Ashish verma
@ashish1500616
yanuar u from patna??
Yanuar
@Yanuarpr
@sorinr thank,s its ok now
CamperBot
@camperbot
yanuarpr sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 971 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@thodorisanta you must know. its your function :)
Ashish verma
@ashish1500616
@Yanuarpr u from patna??
Yanuar
@Yanuarpr
@bitian1506 i'm from indo
Ashish verma
@ashish1500616
ok....
Sorin Ruse
@sorinr
@thodorisanta 1 is like true and 0 like false
Spyrantis Theodoros
@thodorisanta
@sorinr then what is -1 for
Sorin Ruse
@sorinr
@thodorisanta false
Franco Rufo
@francorufo

http://codepen.io/franorufo/full/rWoXee/

My <ul> making the word "welcome" fades away upwards. Will this give me any problem when i add on more stuffz or can I ignore it?

Spyrantis Theodoros
@thodorisanta
in this project i have to square every digit of a number.For example, if we run 9119 through the function, 811181 will come out. what did i do wrong?
function squareDigits(num){
  //may the code be with you
  var res = num.split("");
  for(var i=0;i<res.length;i++){
    res[i] = res[i]*res[i];
  }
  return res.join("");
}
Sorin Ruse
@sorinr
@thodorisanta i would use an intermediate array like var myarr = []; then instead of res[i] = [res[i]+... i would myarr.push(res[i]*res[i]) then return myarr.join
Adi2Point0
@Adi2Point0
@sorinr : That's not a issue. Problem is with this line var res = num.split(""); He's calling .split on Number. Correct code should be var res = num.toString().split("");
either this or pass in string.
Also, why would you create separate myArr ?
Pramod Potdar
@ppmakeitcount
hey how we can know properties of data we received from getJSON function??
Adi2Point0
@Adi2Point0

@PP-MakeItCount : Assuming you get your data in the variable response, you can use

var properties = Object.keys(response);

example

var response = {
  "firstName":"Pramod",
  "middleName":"Raghunath"
  "lastName": "Potdar"
};
var properties = Object.keys(response); // ["firstName","middleName","lastName"]
luoren
@monsterzzz
could anyone help me...
click 778 why output 778?
clike *778
click 778*
why output *778?
Pramod Potdar
@ppmakeitcount
@Adi2Point0 hey how to know which is quote and which author in quote machine challenge.
Adi2Point0
@Adi2Point0
@PP-MakeItCount what's the response that you're getting?
Pramod Potdar
@ppmakeitcount
i am not getting any response. 😕
Adi2Point0
@Adi2Point0
@PP-MakeItCount Show your code
Pramod Potdar
@ppmakeitcount
actually i am using gitter on mobile. i will send you my code personally aftersome time when i get to my laptop. thank @Adi2Point0
CamperBot
@camperbot
pp-makeitcount sends brownie points to @adi2point0 :sparkles: :thumbsup: :sparkles:
:cookie: 200 | @adi2point0 |http://www.freecodecamp.com/adi2point0
Sorin Ruse
@sorinr
@Adi2Point0 yep. ur right. didn't noticed the passed in var its a number.
Spyrantis Theodoros
@thodorisanta
@sorinr what is wrong in my code though? :P
Adi2Point0
@Adi2Point0
@thodorisanta :point_up: December 18, 2016 1:05 PM
Spyrantis Theodoros
@thodorisanta
@Adi2Point0 whaat?
Adi2Point0
@Adi2Point0
@thodorisanta Use this code
function squareDigits(num){
  //may the code be with you
  //var res = num.split("");
  var res = num.toString().split("");
  for(var i=0;i<res.length;i++){
    res[i] = res[i]*res[i];
  }
  return res.join("");
}
Spyrantis Theodoros
@thodorisanta
@Adi2Point0 https://www.codewars.com/kata/square-every-digit/train/javascript i try it and it takes it as false
@thodorisanta i think i need to make it var instead of a string at the end. how can i do that
Adi2Point0
@Adi2Point0
@thodorisanta : just return it as integer.