473,516 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Basic Javascript concepts

1 New Member
Variable and constants
Use var or let for variables and const fror constants.
Expand|Select|Wrap|Line Numbers
  1. Var foo ='bar';
  2.  Let foo ='bar';const baz ='bar';
Functions
Expand|Select|Wrap|Line Numbers
  1. function $name$ ($parameters$) {
  2.  }
  3.  (($parameters$)=> {
  4.  }).call(/*|| value%20of%20parameters||*/);
Comments are encouraged!
Mar 31 '24 #1
0 11153

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5763
by: bbxrider | last post by:
i'm new to javascript but have programmed lots in vb, cobol, basic, etc jscript seems much more object oriented to me, much more direct manipulation of properties at least, than vb, don't know about methods yet i'm having trouble locating property 'trees' so to speak, at least for html/web and jscript objects like in this code: function...
1
1796
by: bj | last post by:
I have several pages that I want to allow the same kind of activity, so my basic question is how best to structure the interaction (and I have one related subquestion as well). Scenario: The user clicks a hyperlink and opens a new window in which there is a bit of explanatory text. This text will be different for every link. In addition,...
4
1715
by: Ryan Gaffuri | last post by:
I know that this works. I just don't get the syntax. I know its checking the OS. just not sure how it works. var v = navigator.appVersion.toUpperCase() if (1+v.indexOf('WIN98') os = 'Win98'; else if (1+v.indexOf('WINNT') os = 'WinnT';
12
1902
by: Mark Fox | last post by:
Hello, I am attempting to do something very simple. I have a page MainPage.aspx and a popup window Popup.aspx. When users click on the linkbutton in the popup window I am looking to do some server side processing in Popup.aspx, then have the popup window close, and have the MainPage.aspx do a postback to the server. But I am having...
3
1286
by: Ashok Gopalan | last post by:
How do I attach a client-side validation script in a web form page for a text box control. The intellisense dropdown does not show the common "OnChange" event. Any help is greatly appreciated. Regards, AG
2
920
by: Eldon Ferran de Pol | last post by:
Hi all, Can anyone see what is wrong with this function. It's being called by the OnClick of a radio button. For some reason I can't access the options collection or any of the Select's basic properties (e.g. type, name etc.). I've tried access ddlMonEnd using this syntax as well as GetElementByID and doc.frm.ddlMonEnd. None of them...
8
1195
by: Grant Merwitz | last post by:
hi I am using Javascript to do my validation This is so i can display a loading message after a form is submitted. Now, currently i do so like this. I have a button, textbox and label like so: <asp:textbox id="tb" runat="server"/>
1
1373
by: rpavithra | last post by:
how do i do the following program in javascript using array? accept 10 names from the user and print that name which has the most number of vowels.
0
7279
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7412
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5717
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3265
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1624
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
825
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
494
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.