Question: I'm trying to run a test on my javascript, but I don't know how I can get it to save the result as an array

I'm trying to run a test on my javascript, but I don't know how I can get it to save the result as an array of strings, so it can be compared to the expected array.

The first error by var result says: Multiple markers at this line - Array cannot be resolved to a type - var cannot be resolved to a type

The last error by var expected says: Multiple markers at this line - var cannot be resolved to a type - Type mismatch: cannot convert from String to var

I'm trying to run a test on my javascript, but I don't

1 import static org.junit.jupiter.api.Assertions.*; 3 import java.util.InputMismatchException; 5 import org.junit.jupiter.api.Test; 7 class RomanNumeralsTest i 9 @Test 2 4 10 public void positive 12 13 14 15 16 17 18 19 20 21 int str-10; var result= new Array(10); for(int i-0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!