4 ms·
Want Exercises to Learn JavaScript
I've finished learning till arrays in javascript, what should I do now?
I'm wondering what should I do now. Can you throw some practice problems/exercises to practice at this level? I'm not in position to solve highly complex data structures programs imo.
I'll be learning about strings today.
- frogulis 4y agoTry writing some code using loops, if statements etc to - create a new array that is the reverse of the old array - reverse an array by modifying it in place - see what happens if you use the `delete` keyword on an array element - see what happens if you index or `.find` an element that doesn't exist - try out the built-in functions `map`, `filter`, `reduce`. See if you can get an intuition for what they do and how they're generally useful Finally, think about why you're learning JS in the first place and start a project in that space. Even if you don't know everything you need, it's a fulfilling way to direct your future learning Have fun!
- shivajikobardan 4y agoit's for web development.
- shivajikobardan 4y agoUpdate: These are the helpful things that I found from my research. 1) Wes bos 30 days of javascript. 2) https://www.freecodecamp.org/news/javascript-projects-for-beginners/ https://www.freecodecamp.org/news/javascript-projects-for-be... 3) Go to codewars easier challenges Exercises: Write a function that takes an array of numbers and returns the largest number in the array. Write a function that takes an array of strings and returns a new array containing only the strings that are shorter than 4 characters. Write a function that takes an array of numbers and returns a new array containing only the even numbers from the original array. Write a function that takes an array of numbers and returns the sum of all the numbers in the array. Write a function that takes an array of words and returns a new array containing only the words that are palindromes (words that are spelled the same forwards and backwards, like "racecar" or "level"). Try writing some code using loops, if statements etc to - create a new array that is the reverse of the old array - reverse an array by modifying it in place - see what happens if you use the `delete` keyword on an array element - see what happens if you index or `.find` an element that doesn't exist - try out the built-in functions `map`, `filter`, `reduce`. See if you can get an intuition for what they do and how they're generally useful My university programming course assignments. Based on research, I think I should keep learning more of javascript for the time being.