TypeError: Cannot assign to read only propertyTypeError: read-only property को assign नहीं किया जा सकता
किसी read-only property पर write करने का प्रयास किया गया, या तो object frozen था या property non-writable परिभाषित थी।
TypeError: Reduce of empty array with no initial valueArray.reduce() को empty array पर initial value दिए बिना call किया गया।
आपने किसी ऐसे array पर .reduce() call किया जो empty निकला और दूसरे argument के रूप में initial value नहीं दी। Initial value के बिना reduce पहले element को उपयोग करता है, लेकिन empty array में कोई पहला element नहीं होता।
.reduce() में हमेशा दूसरे argument के रूप में initial value दें: array.reduce((acc, val) => acc + val, 0)। Reduce करने से पहले array के empty होने की जाँच करें, या पहले empty arrays को filter करें।
[].reduce((a, b) => a + b); // TypeErrorTypeError: Cannot assign to read only propertyकिसी read-only property पर write करने का प्रयास किया गया, या तो object frozen था या property non-writable परिभाषित थी।
ReferenceError: x is not definedकिसी ऐसे variable का reference किया गया जो किसी accessible scope में declare नहीं हुआ।
TypeError: Cannot read properties of undefined/nullundefined या null पर किसी प्रॉपर्टी या मेथड को एक्सेस करने का प्रयास किया गया।
TypeError: Method called on incompatible receiverकिसी मेथड को ऐसे 'this' मान के साथ कॉल किया गया जो अपेक्षित प्रकार का नहीं है।
SyntaxError: Unterminated string literalकिसी string literal में बंद करने वाला quote गायब है।
DOMException: SecurityErrorब्राउज़र की सुरक्षा नीतियों द्वारा एक सुरक्षा-संवेदनशील ऑपरेशन अवरुद्ध कर दिया गया।