Espressioni e operatori
echo 'Hello';
$s = "World";
echo 'Hello' .' '. $s;
echo '5';
$a = 5;
echo $a;
echo $a == '6';
echo $a == 2+3;
echo 2<3;
echo 2+2<3;
echo (2+3==6)||(3-2==1);
$b = $a + $a;
echo $a != $b;
ricorda: PHP non stampa il FALSO
Espressioni e operatori
alert('Hello');
var s = "World";
alert('Hello' + ' ' + s);
alert('5');
var a = 5;
alert(a);
alert(a == '6');
alert(a == 2+3);
alert(2<3);
alert(2+2<3);
alert((2+3==6)||(3-2==1));
var b = a + a;
alert(a != b);
MDN JS
w3schools
Espressioni e operatori
int x = 100;
int y = 75;
char ch = 'A';
boolean bb = (100 != 90+10);
boolean bbb = ((3<4+1)||(2<5/2))&&(12/2==6);
boolean ff = ((3<4+1)||(2<5/2))&&(12/2!=6);
void setup() {
background(255);
size(300, 150);
stroke(0);
strokeWeight(5);
fill(50);
background(255,255,255);
}
void draw() {
text(x,50,35);
text(x+y,90,35);
text(ch,50,50);
text(str(bb),50,65); // check str()
text(str(bbb),90,65);
text(str(ff),130,65);
text("mouseX: "+mouseX, 130, 90);
text("mouseY: "+mouseY, 130, 125);
}
PHP is a server-side scripting language designed for web development but also used .....
wikipediaJavaScript, often abbreviated as JS, is a high-level, interpreted programming language. .....
wikipediaProcessing is an open-source computer programming language and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching non-programmers the fundamentals of computer programming in a visual context ....
wikipediaAccademia Statale Belle Arti Albertina Torino | ABTEC40 - Chiari- a.a.24.25| Thanks to http://templated.co.