From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/ca/glossary/boolean/index.html | 55 ------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 files/ca/glossary/boolean/index.html (limited to 'files/ca/glossary/boolean/index.html') diff --git a/files/ca/glossary/boolean/index.html b/files/ca/glossary/boolean/index.html deleted file mode 100644 index 8e85a6ad08..0000000000 --- a/files/ca/glossary/boolean/index.html +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: Boolean -slug: Glossary/Boolean -tags: - - Boolean - - CodingScripting - - Glossary - - JavaScript - - Programming Languages - - data types -translation_of: Glossary/Boolean ---- -

En informàtica, un boolean és un tipus de dada lògica que només pot tenir els valors true o false. Un valor booleà és com un llenguatge de programació que permet representar true i false. Sense la capacitat per representar els valors booleans una sèrie de coses en un llenguatge, deixarian de funcionar. Per exemple, en Javascript, una instrucció if condicional ha de produir com a resultat un valor booleà perquè s'executi tot. En un bucle JavaScript sense la seva condició booleana el bucle mai sabrà si vol executar-ho o no la codificació

- -
***JavaScript if Statement***
-if(boolean conditional) {
-   //coding
-}
-
-if(true) {
-  console.log("boolean conditional resolved to true");
-} else {
-    console.log("boolean conditional resolved to false");
-  }
-
-
-
-***JavaScript for Loop***
-for(control variable; boolean conditional; counter) {
-  //coding
-}
-
-for(var i=0; i<4; i++) {
-  console.log("I print only when the boolean conditional is true");
-}
-
- -

 

- -

 

- -

Aprèn més

- -

Coneixement general

- - - -

Referència tècnica

- - -- cgit v1.2.3-54-g00ecf