For a small project that hopefully will reach some level eventually. At some point after many efforts I tried the following code: This code affects only the last image (div id ttt9), the reason may be that theImg is overwritten after every each(). So the solution was: It will take me a while to get… Continue reading Last image standing
Today I learned that line 3 of the following does not work if you want x to be “ab”: what I did was: (See it here) I don’t know if it is good style. That made me think about Python, but Python does not have a string concatenation operation like that leaving no room for… Continue reading Mutation
Yesterday I had to append a computed svg to a table altering an existing jQuery project. I wrote the following: But it didn’t work. I had to change it to the following:
Yesterday I remembered the following code: I couldn’t understand how it works, I mean shouldn’t it be something like this: After some research Short circuit evaluation came up. So this code actually performs the task in a more elegant way. Now I have more reading to do because Python has short circuit evaluation also.