hi, I am creating an image slider that always displays 6 thumbnail images every time. The slider has also 2 counters which show how many images are left on the right and left side of the current slide. I've managed to write a JS file for the slider. It works like a moving train inside the tunnel - the tunnel is a <DIV> that always displays 6 thumbnails and the train is an <UL> with thumbnails. Every time I click on the right/left arrow, the train moves left/right by the length of the tunnel (i.e. 6 thumbnails) or by the length of the thumbnails left so that always 6 images are displayed.

My slider is working if there is more than 12 thumbnails, but if there is 12 images or less then navigation arrows simply fadeOut() and the slider no longer functional.

I spent several hours searching for an error in my algo but still cant figure out ... help pls

@ma5one1 strings are immutable, so string functions can not modify an existing string. However, many string functions do return a new string, repeat included. Problem is, if you don't store that value in a variable or use it immediately, it is lost.

hey guys, how do I open up a project folder in Sublime Text 3 editor using the windows terminal? the command subl . won't work (says it's not recognized as internal or external command) and I've added the Sublime Text 3 directory (C:\Program Files\Sublime Text 3 at the end of the PATH of the System Variable but it didn't work. (subl . and sublime_text commands don't work - not recognized)

Essentially, the - 65 comes from fact that first letter in alphabet, A, has a char code of 65, so subtracting 65 from any letter will tell you its "distance" from A. The + 13 because we want to offset the letters of the alphabet by 13... A becomes N, B becomes O, etc.

@state0fmind You mean how can you know that there is new data?Well you do not know unless your server sends push data to your app or you ask the server for new data all some seconds (Nasty).All of those options will put lots more load on your server though.

the <EditRecipe/> creates a new object for the edited recipe and i was thinking of passing it up. because that is what i did with <AddRecipe /> by for the adding of recipe but its less nested. in the <AddRecipe />, i created a newRecipe object in the state and pass it up to <App />

@GregatGit one question. declaring a new function inside the child component just to use the function we have passed down as a prop is not recommended. but is it wrong per se? i mean it could still work right?

@sjames1958gm ty. Good to know. I'm trying to do some trial/practice work in Firefox scratchpad. Maybe need to switch over to jsbin, or fiddle, or plunker. I don't like having js practice in Codepen, I don't care for its console.

If it wasn't there first, the data would get appended when it comes back from the server - which can be in any order. @Thayyebsalim It's kind of like opening up 10 websites in your browser. You don't know which tab will finish loading first.

@SkyC0der Thank you. Sorry for this late reply, I was mulling over what you said. So I need something to trigger the function. It seems obvious now, but for some reason, I thought the code would just continue to run and the browser would just figure out for itself that the state of the checkbox was checked.