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.
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.
Update: These are the helpful things that I found from my research.
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.