Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

4.4.2.2. Good Variable Names¶

/*Variable names should be descriptive, providing context about the data
they contain and how they will be used.*/

let radiusOfCircle = 5;
const pi = 3.14;
let areaOfCircle = pi * radiusOfCircle ** 2;
console.log(areaOfCircle);

/*TIP:
When considering program readability, think about whether or not your 
code will make sense to another programmer. It is not enough for code 
to be readable by only the programmer that originally wrote it.*/
Comment

PREVIOUS NEXT
Code Example
Javascript :: 4.6.3. Order of Operations¶ 
Javascript :: 4.8.3. Critical Input Detail¶ 
Javascript :: change color of input if submit clicked and input is empty 
Javascript :: firebase dynamic Links safari not able to open the link becuse the link is invalid 
Javascript :: how to create a mixed array in javascript 
Javascript :: express orm 
Javascript :: Dynamically bind layouts android with json array 
Javascript :: add single quote in Innerhtml javascript string 
Javascript :: how to turn off auto refresh a href in javascript 
Javascript :: How To Add Google Social Login Button 
Javascript :: vuex get data in mounted 
Javascript :: javascript substtgin 
Javascript :: lity popup 
Javascript :: when i send req upload image in node give Error: ENOENT: no such file or directory,ues multer 
Javascript :: import multiple packages jsp 
Javascript :: how to log message with replacing placeholders in the string in js 
Javascript :: javascript get local timezone 
Javascript :: absolute sum javascript 
Javascript :: CELEBRITY PROBLEM 2 gfg 7-18-21 
Javascript :: DeleteAsync 
Javascript :: This is an example of oligosaccharides: 
Javascript :: find duplicate characters from string in javascript 
Javascript :: js load inside div from file 
Javascript :: scenery 
Javascript :: Entendendo Package Json e instalando o Express 
Javascript :: react application preloader add 
Javascript :: how to convert base64 to webp in angular 
Javascript :: how to draw and expression tree 
Javascript :: js log without newline 
Javascript :: check if object is empty js 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =