Producing data is a first step in four-steps process data.
In this step, we choose a individuals that included in the sample from population. We collect data from individuals to move EDA.

In this step have 2 stage:

  • Sampling
  • Study design

Sampling

In previous section, we said to sampling is a…

You can use let or var keyword to declare variable, object in JavaScript. But, what’s different between them?

Keyword let allow you declare variables that are limited to a scope of a block statement ({}).
Look a below example:

function func() {
let t = ‘hello world’ ; // t is exists in this scope
}
t = ‘javascript’ // Error

Keyword var declare global variables in script. They are processed before any code is executed. This lead to problem which is call Hoisting (You can search more to understand 😁)
Here a example:

k = ‘first’ // Hoisting
function func() {
var k = ‘second’ // Declare here
}
k = ‘third’ // Valid assign

We usually use let to declare variable, object, and var to declare function. This help your code is safely, less bug.

JavaScript is a popular language programming to develop web application today. It is simple and powerful. We can easily use JavaScript on most browers (Chrome, FireFox, …). I have some recommend help you to learning and improve JavaScript skill better. 😊

Document

MDN

It covers almost topics in Web Development. You learn…

du nguyen

Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store