Important Topics For JavaScript
Handling Your JavaScript Code Error Very Easly
As a programmer, you get more errors when you get an error than you are very upset. don’t worry just follow some trice …..
Error handling: just right down some code in your code file or project like this try…..catch
Code Example:
try{
//write down your code
}cath(arr) {
//this is arror handling
}
full article coming soon………….loren more
JavaScript Best Practice
As a programmer also want to be a good coder right?
if your answer is yes this article for you or your answer is no this article for you. this article needs both. I explain about javaScript good and bad practice example by coding let’s get started….
Bad Practice coding example
const address=’Dhaka Bangladesh’;
function fName (title,name){
let myName =’title+name’;
return myName;
}
Good Practice coding example
const address = ‘Dhaka Bangladesh’;
function fName(title, name) {
let myName = ‘title + name’;
return myName;
}
if you want to learn more please click here
JavaScript Comments
Which is the best comment in your project code?
Get kawcher habib’s stories in your inbox
Join Medium for free to get updates from this writer.
do you know? if your answer is no then read the article
comments is an important part of our project coding file. it’s we know that but don’t follow or don’t use it in our coding project file so I highly recommend you please use comment your coding project file it helps you easily find why you are writing this code…
For example, you use two types of comments in your coding file first one //is used for a single comment, and multiple comments /* */ that’s it learn more click here
Cross Browser Testing
As a web developer, you must be known and learn cross-browser testing this article I will discuss why to know cross-browser testing need a web developer.
what is cross-browser testing? it is a web test way example your web site responsiveness mobile version Desktop version table version not only this you code bug testing your web site future working testing and so on if you want to know more please click here
Es6 Most Important Some Topic
Es6 comes to help the web developer with an easy-to-use website. In this article, I explain es6 some topic block binding
var declaration and hosting
var declaration that’s mine using var key
example: var
Block-level declaration
block-level declaration use for global scope
For example, it’s using beside in function and block
function address(){
var value = ‘habib’
return value;
}
Block-binding in loop
code example
for (var i = 0; i<10; i++){
var result = i;
return result
}
console.log(result)
Imaging best practice for block binding
The best practice for block binding just to follow ECMAScript6
if you learn more please click here






