Tell us what’s happening:
I decided to change my personal portfolio webpage to use JavaScript to display the projects.
My Projects - html-css-only
My Projects - js version
But the js version didn’t work correctly. First row of the projects shrink in both left and right side.
At the beginning, I thought it maybe related to the image. But after I changed all the image to the same size, the problem still there.
FYI - You could avoid the two if statements by using the following code. You will notice I used something you probably have not see before called Destructuring assignment to clean up all of the those variable assignments.
I have updated my code again. I feel that I may not need <div class="row">${projectHTML}</div>; at all.
Because I have set up <div class="col-xs-12 col-sm-4">...
So it will either be three in a row, or one in a row.
How do you think of that?
Also, from your code, I learned Template Literals and Destructuring assignment.
Here is the one I used template literals and destructuring assignment.
But I found that both of that won’t support internet explorer. Do you have any suggestion?
Thanks again for your time and your advise. It is very valuable to me.