Filter
Exclude
Time range
-
Near
Replying to @Maestrowafact
Oneni tu visado vya dagaa ila anayo checknumber
7
2,446
function checkNumber(num) { if (num > 0) { return "positive"; } else if (num < 0) { return "negative"; } else { return "zero"; } }
1
1
3 Nov 2025
[456370968][turbolev] Do not elide CheckNumber if alternative is a weaker check chromium-review.googlesource…

871
Replying to @temba_45 @Jambotv_
kambongo kape checknumber tu huwa kanaona kamemaliza mno!
9
6 Jun 2025
Example: A Promise that resolves or rejects based on a condition 1. Create a Promise const checkNumber = (number) => { return new Promise((resolve, reject) => { if (number > 10) { resolve("Success! Number is greater than 10."); } else { reject("Error! Number is 10 or less."); } }); }; 2. Use the Promise checkNumber(15) // Try changing this to 5 to see rejection .then((message) => { console.log(message); // Runs if resolved }) .catch((error) => { console.error(error); // Runs if rejected }); How It Works: checkNumber returns a new Promise. Inside, the executor function checks if the number is > 10. If yes, it resolves with a success message. If no, it rejects with an error message. .then() handles the resolved case. .catch() handles the rejected case.
1
1
42
6 Jun 2025
Example: A Promise that resolves or rejects based on a condition 1. Create a Promise const checkNumber = (number) => { return new Promise((resolve, reject) => { if (number > 10) { resolve("Success! Number is greater than 10."); } else { reject("Error! Number is 10 or less."); } }); }; 2. Use the Promise checkNumber(15) // Try changing this to 5 to see rejection .then((message) => { console.log(message); // Runs if resolved }) .catch((error) => { console.error(error); // Runs if rejected }); How It Works: checkNumber returns a new Promise. Inside, the executor function checks if the number is > 10. If yes, it resolves with a success message. If no, it rejects with an error message. .then() handles the resolved case. .catch() handles the rejected case.
1
1
15
28 Mar 2025
プログラムのメソッド名、長くなっても意味を説明している方が良い派。 boolean checkNumber() よりは boolean isValidNumber() ラムダ式の中で唐突に出てきても、何の操作してるかなんとなく分かる。だから「全員長ったらしいメソッドつくれ!」って、うっすら思ってる。
621
7/ Switch and Cases in Motoko 🔄 Switch statements help handle multiple conditions cleanly. func checkNumber(x: Nat) : Text { switch (x) { case (0) "Zero"; case (1) "One"; case (_) "Other number"; } };
1
1
22
14 Jan 2025
[389330329][maglev] Fix Phi untagging bug with CheckNumber(HoleyFloat64) chromium.googlesource.com/v8… Regress test: chromium.googlesource.com/v8…

2
2
1,391
একটি ফাংশন লিখুন যা একটি সংখ্যা ইনপুট হিসেবে নিয়ে বলে এটি জোড় না বিজোড়। const value = (a ) =>{ if(a%2 === 0){ return "Number is even" } return "Number is odd" ; } const checkNumber = value(7); console.log(checkNumber);
11
Never hunt for documents again. With our intuitive search features, your files are instantly accessible from any device. -- 🌐 macrosmith.com #documentsearch #intuitivesearch #fileaccess #digitalfiles #searchfeatures #VINlookup #ROsearch #namelookup #checknumber
3
You’ve only written 13 checks? No need to obscure your routing number, it’s located underneath the checknumber in fractional form.
4
Replying to @0olsq
<?php function checkNumber($number) { if ($number % 2 == 1) { echo "キョワイ"; } else { echo "Andou Kazumi"; } }
40
15 May 2024
[42204525][turboshaft][Maglev-to-ts] Support CheckNumber chromium-review.googlesource…

752
Replying to @Samskills_tz
Ukiwa na miaka 24 ulikuwa na checknumber? Bro tusichukuliane powa aisee. Nikiweka yangu hapa ambayo si wewe wala hao MD hamuifikii 🤣
1
2
94
21 Jan 2024
14. Control Flow - IF ( Typescript vs Rust ) => IF Control Flow in TypeScript 1. Condition: The if statement evaluates a condition that returns a boolean (true or false). 2. Block Scope: Variables declared within an if block are scoped to that block. 3. Type Guarding: TypeScript allows for type narrowing within if blocks. ==> Basic Example function checkNumber(num: number) { if (num > 0) { console.log(`${num} is positive`); } else if (num < 0) { console.log(`${num} is negative`); } else { console.log(`${num} is zero`); } } Typescript checks for truthy/falsy value meaning its not necessary to keep boolean value in condition. => IF Control Flow in Rust 1. Condition Type: The condition in a Rust if statement must be a boolean (bool). 2. No Implicit Conversion: Unlike TypeScript, Rust does not perform implicit conversion to boolean in if conditions. 3. if as an Expression: In Rust, "if" can be used as an expression to return values. ==> Basic Example fn check_number(num: i32) { if num > 0 { println!("{} is positive", num); } else if num < 0 { println!("{} is negative", num); } else { println!("{} is zero", num); } } ==> if as an Expression in Rust fn main() { let num = -5; let abs = if num < 0 { -num } else { num }; } we can use if on the right side of a let statement to assign the outcome to a variable. Values in each arm of if must of of same type meaning value returned from if and else must be of same type. Below code will not compile because if is returning number and else is returning string. fn main() { let num = -5; let value = if num < 0 { 0 } else { "hello" }; } That's a wrap.
1
2
183
6 Dec 2023
🥁 Drumroll for the answer to our #JavaScriptQuiz! The trick was in the data type: console.log(checkNumber('5')); // Outputs 'Not a number!' Even though '5' looks like a number, it's actually a string! In JS, '5' and 5 are different beasts. 🤓 #CodingPuzzle #javascript
7
5 Dec 2023
🧩 Coding Time! 📷 Can you spot the subtle error in this JavaScript snippet? function checkNumber(num) { return typeof num === 'number' ? 'It’s a number!' : 'Not a number!'; } console.log(checkNumber('5')); Hint: It's all about the details! #coding #javascript #developer
1
13
Starting check number is the number of your first check, Whether you are ordering checks from an existing checking account or a new one. dancingnumbers.com/starting-… #StartingCheckNumber #Howto #Change #CheckNumber #QuickBooks #QuickBooksDesktop #QuickBooksOnline #DancingNumbers #Saas
15