Sida loo gab ka war 'Console lama filaan ah.’ (no-Console) in Eslint?

Si aad u gab ka war 'Console lama filaan ah.’ (no-Console) Baadi in Eslint, aad u baahan tahay in aad ku darto caadiga ah ee file .eslintrc.json ah. In qaybta sharciyada ee file .eslintrc.json ku dar line soo socda: “no-Console”:0 Tani gab doonaa qaladka. Waxaad u qaban karo halkii: “no-Console”: “off” Tani waxay samayn lahaa wax la mid ah, which is turn off any

Read More

Sidee si uu u xaliyo JS Noode ah “SyntaxError: dejinta calaamo lama filaan ah” marka la isticmaalayo modules JavaScript

Si Guntin in modules dhoofinta aad leedahay inuu ku meeleeyo shaqo kasta, shayga ama variable, oo u baahan in la dhoofiyo, sida guryaha ee modules.exports u diidid.   Exporting In this example the module file is robot.js. Each function, object or variable we would like to make available to other files we make them properties

Read More