Skip to content
Advertisement

Tag: javascript-objects

[‘a’, ‘m’, ‘r’, ‘i’, ‘t’, ‘ ‘, ‘s’, ‘h’, ‘a’, ‘h’, ‘i’], After each ‘ ‘ in a word, would like to display the word. unable to display second word shahi

Would like to to display the word shahi as able to display first-word amrit after ”, is there any way to display last word using code. help appricated. Output: [‘a’, ‘m’, ‘r’, ‘i’, ‘t’] likewise i would like to display shahi if i console log. Answer You should have two control structures: The result array A buffer to store sub-words

Search for multiples Keys on new Map()

Normally what we do is like And when we want to retrieve the information just One of the benefits that Map has is that we can put whatever we want as key or value. I’m trying to set a multiple value of keys on the “key” part of the map, that’s not the problem is later when I want to

Advertisement