Skip to content

Tag: output

Javascript how to change font properties to script?

I found this script which is perfect for what I need. However I would like to change the font properties to make it bold and red for the result displayed. I looked all over and tried adding it but somehow I just seem to make it not function at all when I do. Any help is greatly appreciated. Here is

How to display elements of this array?

I want all the values of i for which the number is repeating in newArr array. Statement (a) gives me the indices and I want to store them in an array named rem. However console.log(rem[0]) is undefined. What can I do? Answer you mean this?