- Load your webpage completely and press the F12 key to bring up ‘Developer tools.’
- Edit the file to include or delete your code.
- Save the file (Ctrl + S) and then, the browser automatically displays the changes.
Declaring Multiple Variables Simultaneously:
This is actually an inefficient and time-consuming way of declaring variables. The quicker way to do it involves using the ‘var’ keyword just once, followed by the variables that need to be declared, separated by commas. The code would look something like this –
var Michael, Rick, Bob
This method is not only useful for declaring the variables, but can also be used to initialize the declared variables, like this –
var Michael=“15yr”, Rick=“28yr”, Bob=“56yr”
So, the next time you prep yourself to write code, try some (or maybe all) of these shortcuts and watch your work get infinitely smoother. You can check for SQL tips needed for your coding.