Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
Tiago Correia
@tiagocorreiaalmeida
eval(alert("hi"));
if you run this
it will work like you called alert alone, so it means it can run scripts passed by other users if you eval for example an input field
shameem fairooz
@sfshameem5
@tiagocorreiaalmeida I'll get the input, as a string, and evaluate using eval(). If I get I stuck, I'll ping you. Is that alright ?
Tiago Correia
@tiagocorreiaalmeida
if im around sure
shameem fairooz
@sfshameem5
@tiagocorreiaalmeida Okay :)
Tiago Correia
@tiagocorreiaalmeida
the only thing that im trying to say is to avoid using eval, in this situation tis ok, but look at what I sent you im using eval on the user input and as you can see it runs the script
other kind of scripts could cause some damage
shameem fairooz
@sfshameem5
@tiagocorreiaalmeida On this situation, It would okay on math calculations right ?
@tiagocorreiaalmeida I didn't get what you said earlier. Not enough experience using `eval() to understand that.
Lallo Vigil
@lalov1
I'm trying to include the Materialize with my React project, but I can't get the JS to work for Materialize. Would someone let me know if I'm doing it correctly? https://codepen.io/lalov1/pen/97756811476267a589a730dc15f881a1
Eric Weiss
@eweiss17
I believe the older versions of materialize are dependent on jquery
Kaz Baig
@kbaig
@lalov1 also, Uncaught ReferenceError: options is not defined
on line 14
Lallo Vigil
@lalov1
@kbaig I do see that, but I don't see why it isn't working
@eweiss17 I tried including jQuery and it still doesn't work.
Kaz Baig
@kbaig
@lalov1 You never defined a variable called options
Lallo Vigil
@lalov1
@eweiss17 Nevermind I had the scripts out of order. Thank you!
CamperBot
@camperbot
lalov1 sends brownie points to @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 616 | @eweiss17 |http://www.freecodecamp.org/eweiss17
shameem fairooz
@sfshameem5
@NJM8 I'm using it for math calculation.
Nate Mallison
@NJM8
Sure, plus you have link to a bank account or user accounts or anything like that, but I just wanted to share why it can be dangerous.
Max Kazionov
@MaximKazionov
Hey guys, can you hell me with such question :
Where it's better to start (at Freecodecamp or at a beta freecodecamp?)
Nate Mallison
@NJM8
IMHO it also makes the calculator much easier. once you have it done and are happy with your results it's a good challenge to build your own parser to process the input. You will learn a lot and if a potential employer looks at your code won't ask why are using eval but will be wowed that you built your own parser
@MaximKazionov I think with the beta you get the advantage of so many years of experience and refinement, I also hear it is much shorter and more to the skills you need. But there are no certifications yet, at least last I looked
Max Kazionov
@MaximKazionov
@NJM8 Thank you so much!
CamperBot
@camperbot
maximkazionov sends brownie points to @njm8 :sparkles: :thumbsup: :sparkles:
:cookie: 425 | @njm8 |http://www.freecodecamp.org/njm8
Max Kazionov
@MaximKazionov
I think that we need not to use bootstrap in our projects, because we use such mad classes as col-md
Or it's make our code more heavily
shameem fairooz
@sfshameem5
@MaximKazionov It becomes familiar after some time. It also has cross browser support
Max Kazionov
@MaximKazionov
But I'm prefer using flexbox or even Css grid, but the last one has a low browser support
Lallo Vigil
@lalov1
@MaximKazionov Beta has a lot better lessons, but I don't think the lessons marked and points will carry over once it goes live. The projects will since they are on CodePen.
Max Kazionov
@MaximKazionov
@lalov1 I think I will start at fcc, and when the beta will has already been released, I will learn some new info hear
Lallo Vigil
@lalov1
@MaximKazionov That sounds like a good plan
Max Kazionov
@MaximKazionov
@lalov1 Yeah)
I think fcc is one of the best learning resources now!
Lallo Vigil
@lalov1
Should I put all my initial recipes in an object? https://codepen.io/lalov1/pen/97756811476267a589a730dc15f881a1
Max Kazionov
@MaximKazionov
@lalov1 You have used css in js?
ExpressyCode
@ExpressyCode
Hey guys, am doing the wikipedia viewer project. Can anyone check if there is something wrong with my fetch? I get error all the time :/
Ken Haduch
@khaduch
@ExpressyCode - post a URL.... there. taking a look
Thomas Tylek
@zippkidd
@ExpressyCode You can't use fetch for that project
ExpressyCode
@ExpressyCode
@zippkidd why?
Thomas Tylek
@zippkidd
@ExpressyCode fetch can't process JSONP which is what you need to use for their API, otherwise you will get CORS error
Not exactly sure why it's set up that way
ExpressyCode
@ExpressyCode
@zippkidd Oh ok so I have to use XMLHttpRequest?