Thursday, March 16, 2023
HomePythonFoolish Errors to Prevent while Coding

Foolish Errors to Prevent while Coding

Prevent this blunders while creating code in any type of language though instances composed below remain in javascript and also css language yet this regulations can be used in any type of language,

  1. Syntax mistakes:
    typos, inaccurate use quotes, braces, semi-colons, and so on
// missing out on semi-colon

var x = 10 console.log( x).

// inaccurate use quotes.

var name="John console.log( name).
  1. Off-by-one mistakes:
    utilizing the incorrect selection index or loophole limitation.
// inaccurate selection index.

var arr = [1, 2, 3, 4, 5];.

for (var i = 0; i <


Most Popular

Recent Comments