Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.0
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Issue Links
- depends upon
-
SONARPLUGINS-1788
Provide JavaScript rule engine based on SSLR
-
Manually tested, could you just update the description as follows :
<p>There are multiple ways to create objects or arrays in JavaScript. Perhaps the more traditional method is to use the "new" constructor, like so:</p> <pre> var o = new Object(); o.name = 'Jeffrey'; o.lastName = 'Way'; } </pre> and <pre> var a = new Array(); a[0] = "Joe"; a[1] = 'Plumber'; </pre> <p>In both cases, it's recommended to use the much more robust object and array literal methods :</p> <pre> var o = { name: 'Jeffrey', lastName = 'Way' }; </pre> and <pre> var a = ['Joe','Plumber']; </pre>