Long description

Back

Browser Window 1 has an address bar that reads j s lint dot com and the web page. A level-1 heading that reads, J S Lint is placed at the top of the top of the window. There is a JavaScript with 8 lines of code that reads as follows. Line 1: var radios equals document dot querySelectorAll open parenthesis open double quotes input open square bracket name equals region close square bracket close double quotes close parenthesis semicolon at indentation level 0. Line 2: for open parenthesis var i equals 0 semicolon i lesser than radios dot length semicolon i increment close parenthesis open curly brace at indentation level 0. Line 3: if open parenthesis radios open square bracket i close square bracket dot checked close parenthesis open curly brace at indentation level 1. Line 4: forward slash forward slash if here then this radio button was selected at indentation level 2. Line 5: alert open parenthesis radios open square bracket i close square bracket dot value plus open double quotes space was checked close double quotes close parenthesis at indentation level 1. Line 6: this dot checked equals true semicolon at indentation level 1. Line 7: close curly brace at indentation level 1. Line 8: close curly brace at indentation level 0. Two buttons labeled J S Lint and Clear are placed side-by-side below the code.

A dialog box titled Warning, aligned to the center is placed below the buttons. The dialog box has a heading that reads, J S Lint was unable to finish. Eight lines of data describing the reason for the warning corresponding to the JavaScript code reads as follows.

Line 1: Unexpected open single quote for close single quote.

Position of the error in the code: line 1 column 0.

Line 2: for open parenthesis var i equals 0 semicolon i lesser than radios dot length semicolon i increment close parenthesis open curly brace.

Line 3: Unexpected open single quote for close single quote.

Position of the error in the code: line 1 column 5.

Line 4: for open parenthesis var i equals 0 semicolon i lesser than radios dot length semicolon i increment close parenthesis open curly brace.

Line 5: Unexpected trailing space.

Position of the error in the code: line 3 column 55.

Line 6: forward slash forward slash if here then this radio button was selected.

Line 7: Unexpected trailing space.

Position of the error in the code: line 5 column 29.

Line 8: this dot checked equals true semicolon.

The lines of code are aligned to the left and the position of the errors mentioned are aligned to the right.

Browser Window 2 is placed to the right of Browser Window 1. The address bar reads, j s hint dot com. There is a JavaScript with 8 lines of code that reads as follows. Line 1: var radios equals document dot querySelectorAll open parenthesis open double quotes input open square bracket name equals region close square bracket close double quotes close parenthesis semicolon at indentation level 0. Line 2: for open parenthesis var i equals 0 semicolon i lesser than radios dot length semicolon i increment close parenthesis open curly brace at indentation level 0. Line 3: if open parenthesis radios open square bracket i close square bracket dot checked close parenthesis open curly brace at indentation level 1. Line 4: forward slash forward slash if here then this radio button was selected at indentation level 2. Line 5: alert open parenthesis radios open square bracket i close square bracket dot value plus open double quotes space was checked close double quotes close parenthesis at indentation level 1. Line 6: this dot checked equals true semicolon at indentation level 1. Line 7: close curly brace at indentation level 1. Line 8: close curly brace at indentation level 0.

There is a block of data titled CONFIGURE at the right side of the code. This has 2 lines of text that reads as follows. Line 1: One warning. Line 2: 5 Missing semicolon. There is another block to the right side of the CONFIGURE block that shows information related to J S Hint like the Version, Documentation, Install, Contribute, and Blog.

Back