What is javascript runtime..?

Maybe it’s referring to Google’s V8 engine. It is an engine for processing JavaScript in the browser and is used by Google Chrome. It’s open source. And it’s written in C++. It works on several platforms including mobile and embedded devices. For more information see: https://code.google.com/p/v8/ If you google for “chrome javascript runtime“, you will get all these … Read more

Why does JSHint throw a warning if I am using const?

When relying upon ECMAScript 6 features such as const, you should set this option so JSHint doesn’t raise unnecessary warnings. /*jshint esnext: true */ (Edit 2015.12.29: updated syntax to reflect @Olga’s comments) This option, as the name suggests, tells JSHint that your code uses ECMAScript 6 specific syntax. http://jshint.com/docs/options/#esversion Edit 2017.06.11: added another option based on this answer. While inline … Read more

What is index.js used for in node.js projects?

When you pass a folder to Node’s require(), it will check for a package.json for an endpoint. If that isn’t defined, it checks for index.js, and finally index.node (a c++ extension format). So the index.js is most likely the entry point for requiring a module. See the official Docs here: http://nodejs.org/api/modules.html#modules_folders_as_modules. Also, you ask how to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)