I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
To answer your question, if I understand you correctly, you are trying to find a way to feed an array of char codes (numbers) to the String.fromCharCode.
Of course, that doesn’t take an array, but a list of numbers. One easy way to deconstruct an array into a list of it’s elements it with the spread operator, which is three periods, ...
var charArr = [72, 111, 119, 100, 121, 33]
var newStr = String.fromCharCode(...charArr)
console.log("The original array =", charArr)
console.log("The new string =", newStr)
String.fromCharCode(...charArr) is the same as String.fromCharCode(72, 111, 119, 100, 121, 33)
First place to look for these things is the docs. MDN is a great source for such things, here’s the doc on fromCharCode.
Next, what I’d recommend is you start playing with the function in a console somewhere. What happens when you give it a single number? Several numbers? An array of numbers?
I think that’s enough information to get you further along the path.
To correct a small error/misunderstanding in your existing code:
var Strings;
Strings.fromCharCode ....
var Strings; is unnecessary and actively will cause your program to not behave as expected. fromCharCode is a static method, which means you don’t need to call it on a variable at all, just on the static object String (notStrings) which already exists.
I’m also unsure what you’re attempting to do with apply. Can you explain?
It’s an ES6 feature I think? So the built in linter will gripe at you unless you specify in a special comment that you’re using those features. You can also just safely ignore it.