If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: javascript-tutorial.com/fr/559/the-basics/basic-javascript-syntax - Basic JavaScript syntax - The .

site address: javascript-tutorial.com/fr/559/the-basics/basic-javascript-syntax redirected to: javascript-tutorial.com/fr/559/the-basics/basic-javascript-syntax

site title: Basic JavaScript syntax - The complete JavaScript Tutorial

Our opinion (on Thursday 19 November 2026 9:05:18 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:

Headings (most frequently used words):

javascript, the, for, web, objects, basic, syntax, metadata, statements, blocks, comments, summary, chapter, article, toc, about, getting, started, basics, control, structures, data, types, built, in, operators, functions, classes, error, handling, regular, expressions, general, bom, dom,

Text of the page (most frequently used words):
the (79), you (42), this (28), javascript (25), will (17), that (17), line (16), and (15), for (15), with (13), introduction (12), #statement (11), code (10), your (9), #syntax (9), are (9), more (9), have (9), alert (9), article (8), not (8), example (8), please (8), but (7), comments (7), lines (7), can (7), one (7), use (7), language (6), hello (6), when (6), need (6), comment (6), then (6), var (6), programming (6), translation (6), operators (6), tutorial (5), languages (5), world (5), these (5), like (5), however (5), forward (5), control (5), functions (5), block (5), happen (5), semicolon (5), try (5), basic (5), metadata (5), operator (5), into (4), help (4), here (4), french (4), next (4), which (4), rest (4), two (4), want (4), after (4), using (4), same (4), also (4), interpreter (4), very (4), about (4), let (4), notice (4), indent (4), methods (4), has (3), translated (3), following (3), click (3), variables (3), previous (3), switch (3), types (3), all (3), write (3), slashes (3), several (3), long (3), default (3), either (3), blocks (3), structures (3), later (3), well (3), inside (3), true (3), won (3), only (3), reason (3), statements (3), loops (3), while (3), basics (3), started (3), web (3), object (3), regular (3), expressions (3), catching (3), translate (2), quick (2), learn (2), way (2), summary (2), many (2), don (2), slash (2), asterisk (2), everything (2), first (2), remember (2), ignored (2), sometimes (2), allows (2), above (2), how (2), second (2), because (2), even (2), should (2), false (2), never (2), sure (2), ending (2), strict (2), new (2), multiple (2), end (2), means (2), case (2), experience (2), any (2), original (2), info (2), already (2), item (2), vote (2), translating (2), chapter (2), button (2), asp (2), net (2), dom (2), window (2), bom (2), search (2), error (2), conditional (2), errors (2), catch (2), fields (2), inheritance (2), getters (2), setters (2), prototypes (2), objects (2), values (2), function (2), parameters (2), array (2), truthy (2), falsy (2), toc (2), localization, contact, com, 2007, 2026, been, fully, preferred, list, vietnamese, spanish, italian, czech, chinese, was, hopefully, aid, understanding, examples, course, there, dig, parts, along, introduce, various, aspects, simply, between, whatever, formatted, prefix, each, multiline, starts, immediately, followed, considered, until, snap, out, mode, notation, reverse, eachother, except, whitespace, interpreted, therefore, valid, leave, self, team, fortunately, easily, meets, used, lot, defining, document, required, most, programmers, makes, readable, tab, key, keyboard, appropriately, per, run, fired, made, hit, contain, than, within, create, curly, brackets, encapsulate, affected, particular, included, assumes, part, structure, understand, intentions, complex, add, anyway, guidelines, generally, recommends, always, forget, actually, matters, without, having, habits, some, style, requiring, fact, guess, ends, linebreak, reached, work, cases, welcome, piece, text, uses, informs, finished, usually, doesn, physically, contained, feel, free, basically, declare, variable, those, name, lowercase, referring, uppercase, fail, show, sensitive, start, rule, confusing, completely, highly, popular, java, php, likely, recognize, javasript, descends, from, heavily, inspired, allow, give, looking, english, logged, page, reloading, login, satisfied, specific, may, down, reaches, certain, negative, threshold, removed, submit, altered, good, reasons, they, see, think, looks, wrong, consult, make, know, fluent, just, point, highlighted, left, border, images, their, titles, get, look, current, status, yellow, untranslated, element, community, working, seems, process, yet, wpf, php5, jquery, html5, css3, webforms, mvc, location, history, script, tag, general, replace, capturing, groups, match, regex, flags, options, throwing, finally, handling, static, classes, extension, property, accessors, properties, return, recursive, callback, anonymous, optional, chaining, nullish, coalescing, ternary, remainder, logical, modify, assign, increment, decrement, arithmetic, comparison, assignment, json, math, date, string, number, built, type, conversion, null, undefined, strings, numbers, booleans, data, tools, getting, libraries, webbrowser, what, table, contents, complete,


Text of the page (random words):
basic javascript syntax the complete javascript tutorial javascript tutorial toc table of contents chapter article toc basic javascript syntax statements blocks comments summary variables truthy falsy about javascript what is javascript javascript and the webbrowser javascript libraries getting started the tools you need hello world the basics basic javascript syntax variables truthy falsy control structures the if statement the switch statement loops for and while loops for of and for in data types introduction booleans numbers strings null undefined type conversion built in objects introduction number string array the basics array methods date math json operators introduction the assignment operator comparison operators arithmetic operators increment decrement operators modify and assign operators logical operators remainder operator conditional ternary operator nullish coalescing operator optional chaining operator functions introduction function parameters function parameters with default values anonymous functions callback functions recursive functions multiple return values objects introduction properties methods property accessors getters setters prototypes prototypes inheritance extension classes introduction fields methods getters setters inheritance static fields methods error handling introduction catching errors try catch catching throwing errors try catch finally error types conditional catching regular expressions introduction regex flags options search match with regular expressions using capturing groups search replace with regular expressions javascript for web general introduction window dom bom the script tag javascript for web the bom the window object the history object the location object javascript for web the dom introduction javascript asp net mvc asp net webforms c css3 html5 jquery php5 wpf the community is working on translating this tutorial into french but it seems that no one has started the translation process for this article yet if you can help us then please click more info if you are fluent in french then please help us just point to any untranslated element highlighted with a yellow left border remember that images should have their titles translated as well inside the article and click the translation button to get started or have a look at the current translation status for the french language if you see a translation that you think looks wrong then please consult the original article to make sure and then use the vote button to let us know about it metadata please help us by translating the following metadata for the article chapter if they are not already translated if you are not satisfied with the translation of a specific metadata item you may vote it down when it reaches a certain negative threshold it will be removed please only submit an altered translation of a metadata item if you have good reasons to do so please login to translate metadata already logged in please try reloading the page more info looking for the original article in english the basics basic javascript syntax if you have previous experience with any of the highly popular programming languages like c java c or php you will likely recognize the javasript syntax the reason is that all of these languages either descends from or are heavily inspired by the c programming language however if you have no previous experience with these languages or even programming at all allow me to give you a quick introduction to the syntax of javascript let s start with a very basic rule which can be confusing if you re completely new to programming javascript is case sensitive this means that a is not the same as a let me show you an example var a 42 alert a here i declare a variable more on those later with the name a lowercase but in the next line i try to use it by referring to a uppercase this will fail because i don t use the same case statements a statement is basically a line of code alert hello world notice how i end it with a semicolon this informs the interpreter that the statement is finished this also means that while a statement is usually one line of code it doesn t physically have to be contained on one line feel free to use several lines as long as you end with a semicolon var s hello world and welcome to this very long piece of text which uses multiple lines please notice that while some c style programming languages are very strict about requiring the ending semicolon javascript is in fact not it will try to guess if your statement ends when a linebreak is reached and this will work in many cases here s an example var s hello world var n 42 however sometimes the interpreter won t understand your intentions if the line of code is more complex and then you will have to add the semicolon anyway for this reason javascript code guidelines generally recommends that you always use the ending semicolon that way you won t forget it when it actually matters it also allows you to later switch to a more strict programming language without having to learn new habits blocks when using control structures like if statements and loops you need to control which line s of code are included by default javascript assumes that only the next line is part of your control structure example var b false if b true alert this will not happen alert this will happen if you run it you will notice that only the second alert is fired the reason is that the if statement will never be true we made sure of that so the following line is never hit however if you need to contain more than one line of code within the if statement you will need to create a block we use curly brackets to encapsulate the lines of code we want to be affected by this particular if statement var b false if b true alert this will not happen alert this won t happen either alert this will happen notice how in this example as well as in the above i indent the next line after the if statement first example as well as inside the block second example this is not required but most programmers will do it because it makes the code more readable you can indent a line or even several lines by using the tab key on your keyboard and if you have a block inside a block and so on you should indent it appropriately one indent per block like this let a 1 b 2 c 3 if a 1 if b 2 if c 3 document write ok blocks are used a lot in javascript e g for control structures like in the example above but also when defining functions more about that later on comments by default everything you write in your javascript code except for whitespace will be interpreted and therefore has to be valid javascript code however sometimes you need to leave a comment either for your self or for your team fortunately javascript allows you to do this very easily if the interpreter meets two forward slashes the rest of the line is ignored this line is a comment you can also do this on the same line as a statement as long as you remember that after the two forward slashes the rest is ignored by the interpreter alert hello the rest of this line is a comment you can have several lines of comments after eachother this line is a comment so is this one but if you need many lines of comments and you don t want to prefix each one with the two forward slashes you can use the multiline comment syntax it starts with a forward slash immediately followed by an asterisk after that everything is considered as comments until you snap out of the comment mode by using the same notation but in reverse so asterisk first then forward slash here s an example all of these lines are comments and you can write whatever you want formatted however you want it simply switch between these two types of comments as you like summary this was a quick introduction to the syntax of javascript which will hopefully aid you in the understanding of the examples of the rest of this tutorial of course there are more syntax to learn but we will dig into these parts along the way when we introduce the various aspects of the language hello world previous variables next this article has been fully translated into the following languages chinese czech french italian spanish vietnamese is your preferred language not on the list click here to help us translate this article into your language javascript tutorial com 2007 2026 contact us localization
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

    No Images


    Verified site has: 78 subpage(s). Do you want to verify them? Verify pages:

    1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
    51-55 56-60 61-65 66-70 71-75 76-78


    Top 50 hastags from of all verified websites.

    Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

    Header

    HTTP/1.1 302 Redirect
    Content-Type text/html; charset=UTF-8
    Location htt????/javascript-tutorial.com/fr/559/the-basics/basic-javascript-syntax
    Server Microsoft-IIS/10.0
    X-Powered-By ASP.NET
    Date Thu, 19 Nov 2026 09:05:17 GMT
    Connection close
    Content-Length 196
    HTTP/2 301
    cache-control private
    content-type text/html; charset=utf-8
    location /fr/559/the-basics/basic-javascript-syntax/
    server Microsoft-IIS/10.0
    set-cookie ASP.NET_SessionId=ienpdyvp5j0kkzrkxujgcgm2; path=/; HttpOnly; SameSite=Lax
    x-aspnetmvc-version 5.2
    x-aspnet-version 4.0.30319
    x-powered-by ASP.NET
    date Thu, 19 Nov 2026 09:05:17 GMT
    content-length 160
    HTTP/2 200
    cache-control private
    content-type text/html; charset=utf-8
    server Microsoft-IIS/10.0
    set-cookie ASP.NET_SessionId=4c0y1lxt03hv54km4ddtt44k; path=/; HttpOnly; SameSite=Lax
    x-aspnetmvc-version 5.2
    x-aspnet-version 4.0.30319
    x-powered-by ASP.NET
    date Thu, 19 Nov 2026 09:05:17 GMT
    content-length 29608

    Meta Tags

    title="Basic JavaScript syntax - The complete JavaScript Tutorial"
    name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"

    Load Info

    page size29608
    load time (s)0.207299
    redirect count2
    speed download143033
    server IP 142.132.248.53
    * all occurrences of the string "http://" have been changed to "htt???/"