Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
JD Tadlock
@johnnunns My answer is still failing or are you wanting to solve it yourself? @johnnunns
John Nunns
well when i looked at your answer, I realized I was pretty far from solving it myself
I may be a little closer now
I believed you used regex correct?
JD Tadlock
@johnnunns Yep
and .reduce()
and .map() i believe
John Nunns
you know what, let me rewatch those higher level function vids you showed me. and then also watch one on regex
JD Tadlock
for regex, you'll just google 'match blah blah' most of the time
John Nunns
is match and regex the same method?
JD Tadlock
i google regex all the time cause i'm not going to spend time figuring out the expression myself if i know it's been done 1000 times
.match() uses regex to 'match' a certain pattern in a string
@zarruk I had a go at your code too: http://codepen.io/JohnnyBizzel/pen/qRjxWp
How can I import a picture from facebook can anybody help me please.
John Nunns
@jdtdesigns alright jd
gonna need some clarification :)
so I'm trying to apply map to my function
function countAllCharacters(str){
    var i = str.split('')
    var x = i.map(function(str){

    return i

I'm really not sure if this is even close
alex can you save your facebook picture in facebook and then use that to make it your profile picture here @alexbuster
JD Tadlock
@johnnunns the argument in the .map() callback refers to the current value in the array as the map iterates through it
John Nunns
is that what I should set it to
I think I'm confused on how to put map inside of a function
you wouldn't use map in this situation
map is for when you have an array, and you want to perform some type of transformation on that array
good video^
John Nunns
just watched it haha @jspeda
which higher order function would you use to solve the problem then?
you can just call .length on the string
and call it a day
or wait
John Nunns
nah it's way more complicated unfortunately :)
what are you trying to do exactly
John Nunns
count each character and separate them - example 'banana' becomes b - 1 a - 3 n - 2
var output = countAllCharacters('banana');
console.log(output); // --> {b: 1, a: 3, n: 2}
JD Tadlock
@jspeda You can use .map() on an object or array
@johnnunns I used .reduce() and .map()
you have my code lol
John Nunns
man unfortunately I do not! closed out of chrome that day before bed and lost it :(
sorry to lead you astray, I should have asked what you were doing more specifically!
John Nunns
sorry bud @jdtdesigns
JD Tadlock
Ve Vanderpool
hey everyone! I am working on my tribute page and I am stuck! I cant figure out how to change the opacity of my background image without changing everything. Help! This is my code
background-size: cover;
background-repeat: no-repeat;
sorry didnt know it was going to post that way
JD Tadlock
@VanAmoVe You can just set the background on a pseudo element and then lower the opacity
Sunny Wong
@VanAmoVe try making a class and setting a opacity?