I'm having a lot of trouble figuring this one out. I have a function which passes value as a parameter, and I need a way to store each single digit that I'm passing in when I'm calling the function. I'm assuming I need to use a for loop and I can assign each digit to [i] but the logic isn't coming to me.
function assignValue(value) {
for (let i = 0; i < value.length; i++) {
// I'M LOST
}
}
assignValue(123);