Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 05-28-2024, 03:49 AM   #1
sahithya
Registered User
 
Join Date: Feb 2013
Location: Bangalore
Posts: 1,213
Javascript best practices

First up, always comment your code. Think of it as leaving breadcrumbs. This way, anyone who reads it, including you in the future, can easily follow along.

Second, keep it simple. Write code that's easy to read and understand. If your grandma can't get it, it's too complicated!

Third, test your code, and then test it again. Bugs are sneaky. Checking your code is like playing detective – you've gotta catch 'em all!

Fourth, use meaningful names for variables and functions. 'x' and 'y' might seem quick, but names like 'totalPrice' or 'userName' tell you what's really going on.

Last, update regularly. JavaScript changes faster than fashion trends! Staying updated means your code stays cool and doesn't get left behind.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sahithya is offline   Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debunking Javascript Myths sahithya Programming General 0 05-09-2024 02:53 AM
Javascript best practices sahithya Programming General 0 06-05-2023 10:24 PM
what is javascript ehsanagar Javascript 6 04-18-2017 03:48 AM
Javascript Countdown Timer redirecting Affiliate Links JavaScriptBank Javascript 0 05-20-2013 10:29 PM
65 Free JavaScript Photo Gallery Solutions JavaScriptBank Javascript 0 04-15-2013 06:38 PM


All times are GMT -7. The time now is 04:10 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.