@diegoignacious are you sure that the correct path? as it stands .../img/1.jpg is telling it go up 1 folder and then go into the img folder. if your img folder is in the same location as your html file, you don't need the leading .... if you open your dev console and re-load the page what's the error message that is being logged? 404 not found?

Hello people! Im having a problem with a project im working on. Its a school exercise. I was given a website to make it look mobile friendly with @media but when i try to do some changes they don't take effect. Ive searched on the net and i have found that including the "viewport" in a meta tag (<meta name="viewport" content="width=device-width, initial-scale=1.0">) fixes this problem. Why does @media gets affected but that meta tag?

@alpox thanksthe first 2 wasn't so bad because I didn't like those companiesbut I like this one so it made me sadalso the interviewer talked to me for more than an hour which made me I think that it went well

have you see n thisto use specific environment i need to install this environment globallyeslint for example npm install -g eslintare you kiddin me?any alternativebased on this error from vscode after eslint plugin installed in VSCODEFailed to load the ESLint library for the documentTo use ESLint for single JavaScript file install eslint globally using 'npm install -g eslint'.You need to reopen VS Code after installing eslint.

@linkin-park Sure it is. Elm is quite nice in some measures but it forces you to do everything exactly their way with no excuse. Thats one thing i didn't like much about it. It prohibits generalization in most cases (Does not necessarily have to be a bad thing though)

Also, Javascript interop can be a pain at times, but that also has its right

@Feldbot No problem. I'd recommend, and this is something I practice in my own code, to only use the ++ operator in situations without the equals sign. It's a lot more readable and no need to get into the headache of using shorthand that doesn't actually shorten things

@kbaig Okay, that makes sense, good to keep a better mental and visual snapshot of what is going on. One other question, do you evaluate all variable assignments from right to left? That is, is that how the engine evaluates variable assignments for all expressions/statements?

Hey Can i get some help? Why is my page overflowing on to right? i know i can fix this by overflow-x: hidden; but how come its overflowing. And for moving my h5 Text over to right is best way move text by using position and right. https://codepen.io/Kennayy/pen/vewZaX

@Kennethli36 position is just moving things around while maintaining the shape it already had. Padding will change the shape of the element. Margin will change the spacing between the element and others

The Gist

The whole state of your app is stored in an object tree inside a single store.The only way to change the state tree is to emit an action, an object describing what happened.To specify how the actions transform the state tree, you write pure reducers.

Immutability gives you certain possibilities like: easy time-travel (data insight of older states), less entanglement - data doesnt just get changed anywhere in your app, so common state is not shared. This makes it MUCH easier to reason about an application.

hello guys! I have a problem... i'm trying to make a fixed top nav menu in my portfolio page but when i made position: fixed my hover doesnt work. how can i do it all work? Here's my link: https://codepen.io/Kathaspar/pen/OjEwJr

CSS problem

CSS is my biggest problem. Does anyone have a good system for rooting out CSS problems or a tutorial that describes a methodology for doing it? A CSS problem comes from some element or elements having a bad value or bad values of some attributes. I find solving these things almost as hard as picking a lock.

Now, at the time you want to add those eventlistener to all buttons with class checked, those buttons don't yet exist because you didn't add any todos yet. (At page load).

@shilpiverma509 Thats why nothing happens on click of the button.

@shilpiverma509 Another note is that you delegate the event to all li descendants - but those would have to be descendants of the button with class checked - but the button itself doesn't have any descendants.

Also, you use 'this' as a string which should be the keyword this (No string). That keyword cannot be used in an arrow function though, because the arrow function keeps the lexical scope. Use function() {} instead if you have to access the this keyword in a jquery callback.

@shilpiverma509 Yes, because you override all todo elements with the method show each time you call add.

This means that all eventhandlers to the elements are gone, as well as their status

@shilpiverma509 The way to create a working todo list as you do is a complicated one done with jquery. Its just a nasty tool for that.When you want to use jquery and not have a bad life, don't draw everything newly each time you add/remove something.

Except you know how to handle some global state which holds all information about the look of all elements and redraw them correctly through the known state.

@Niloy513url+ch+"freecodecamp"+cb would as example give you a good url for the freecodecamp channel. If you exchange chwith st you get the stream which is currently offline and data.stream would be therefore null.

@Niloy513 Yea just console.log(data); to see what exactly you get back

If you use url+st+"freecodecamp"+cb, you get the stream information. If the stream is offline, data.stream is null. If its online, you get data.When you want channel information you need url+ch+"freecodecamp"+cb. That gives you general information without the need that the channel is currently streaming.

@alpox do u remember what was the reason for fcc to introduce the "https://wind-bow.glitch.me/twitch-api/streams/freecodecamp?callback=?" api call instead of just using your own account on twitch api directly?. i've seen that my twitch app is still working.

Hi all, I'm working on the front end weather app project. It's not a required user story, but I was trying to add a feature that pulled JSON from another API.

I get the JSON with jQuery's .getJSON, JSON.stringify it, and console.log that data. It looks just as it does in the browser but of course I can't access the data in it in string form. So I use JSON.parse. Once it is parsed, the value I am looking for DISAPPEARS, and only and empty Object {} is shown. I've already checked to make sure the JSON is valid. Any ideas?

@moT01 here's what i did. i added a working demo as a new feature to my application contained in a nest of other elements. my application has lots of other css. so there are conflicts. i run both apps side by side and inspect an element with a problem. i go through the computed properties list of the element in both apps, looking for differences. if i find one that's different and can be toggled, i do that and see what happens. then i go up one element in the tree and do the same thing. i usually don't find the problem, but if i find something that i can toggle off and fix the problem i compare that attribute's original and updated value in my app to the good value for that same attribute in the demo app. and here's the rub... in the demo app the value is the same as the original one in my app. so i want the computed value to be what it is in the demo, but i also want the element to look the same way it does in the demo. so i'm stuck.

Hi guys, do you know how can I add jquery to my .js file? I want to add a fadeIn effect I tried this:HTML<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><!--AGREGO JQUERY -->
<script src="script.js"></script>.js file:

@mbpiner i would sepparate the functions like: 1. geolocation that will pass the lat and long to your "getweather" function. 2. function reading the input that also pass the value inserted to the function responsible for weather getting the weather, 3. onclick function that read the input and pass it to the "getweather" function