0% found this document useful (0 votes)
9 views2 pages

Java Code Functions

Uploaded by

d_u_o
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Java Code Functions

Uploaded by

d_u_o
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

"".

leght - returneaza dimensiunea sirului de caractere dintre ""

// comment

confirm("") - text box care afiseaza mesajul din "" - returneaza valoarea true in
console log

prompt ("") - text box carea asteapta un mesaj

"".length - number

boolean - true sau fals

console.log() - afiseaza rezultatul unei operatii sau un text in linia de comanda

operatori de comparare

> Greater than


< Less than
<= Less than or equal to
>= Greater than or equal to
=== Equal to
!== Not equal to

CONDITII

if
{
//conditie ;
}
else
{
//conditie;
}

SYMBOL

% modulo
23%10 = 3
17%5 = 2

"some word".substring(x, y)

VARIABILE

var varName = data;

var functionName = function( variable ) {


// code code code
// code code code
// (more lines of code)
};
functionName(value);

global variables
var variableName = value
it defines a variable globaly

You might also like