CODE SENSEIcodesensei.hashnode.dev·Jul 16, 2024How to Use Conditionalsconditions are crucial concepts in programming as they help us save lines of code and manage memory efficiently. CONDITIONALS As the name suggests, conditionals are used to set rules and make decisions based on circumstances. For example, when drivin...DiscussConditional statement
GaramYoongaramyoon.hashnode.dev·Jul 15, 2024Error & Solution _ if(삼항논리연산자), true와 false 따지기 _ (07152024-2)<오류 코드> const onClickButton = () => { if(!word || (newWord.length === 3 || word[word.length - 1] === newWord[0])){ word = newWord; $word.textContent = word; alert(newWord+' ! 쿵쿵따'); ...DiscussJavaScript
Vashishth Gajjarvashtech.hashnode.dev·Jul 13, 2024Chapter 2: The BasicsWelcome back to "Mastering JavaScript"! In Chapter 1, we explored the history and importance of JavaScript and set up our development environment. Now, it's time to dive into the basics of JavaScript. 2.1 Variables and Data Types Variables are used t...DiscussMastering JavaScriptJavaScript
Saurabh Damalehackroot1.hashnode.dev·Jul 11, 2024Understanding PHP Conditional Statements: if, else, and switch ExplainedToday, we will explore PHP conditional statements, which allow you to execute different blocks of code based on certain conditions. Conditional statements are fundamental in programming as they enable decision-making in your code. Let's dive into the...DiscussPHP
manish bhardwajjustblogitmanish.hashnode.dev·Jul 8, 2024JavaScript Basics: How Loops and Conditionals Handle Truthy and Falsy ValuesHave you just started learning to code and used an "if condition" to make decisions based on an expression? If so, you have probably used Arithmetic Operators, Comparison Operators, or Logical Operators, among others. When I started learning to code,...DiscussJavaScript
Maxi Contierimaximilianocontieri.com·Jul 5, 2024Refactoring 014 - Remove IFTL;DR: Remove all your Accidental IF-sentences Problems Addressed Code Duplication Possible Typos and defects Related Code Smells https://maximilianocontieri.com/code-smell-07-boolean-variables https://maximilianocontieri.com/code-smell-36-switc...DiscussRefactoringsrefactoring
Ansir Nihalansirnihal.hashnode.dev·Jul 4, 2024C++ Conditions and If ,else statementsYou already know that C++ supports the usual logical conditions from mathematics You can use these conditions to perform different actions for different decisions The if Statement Use theifstatement to specify a block of C++ code to be executed if a...DiscussC++
Rishabh Mishrarishabhmishra.hashnode.dev·Jun 21, 2024Day 3: Exploring Conditional Statements, Logical Operators, and Interactive ProgramsHello everyone! Today in my journey through Python programming, I delved deeper into conditional statements, logical operators, and created interactive programs that respond dynamically to user inputs. Let’s dive into what I've learned and the exciti...DiscussPythonPython
Sekhudinsyaikhu.hashnode.dev·Mar 3, 2024Java Fundamentals - Conditional StatementsPernyataan kondisional (conditional statement) ada pada berbagai bahasa pemrograman untuk menginstrusikan komputer agar mengambil tindakan jika sebuah atau beberapa kondisi terpenuhi. Tindakan tersebut diambil jika dan hanya jika kondisi yang telah d...Discuss·5 likes·133 readsJava DeveloperJava
Jemin Kikanijemin.hashnode.dev·Feb 27, 2024Day 4: how many types of an Conditional Statement ?Conditional statements are used to perform different actions based on different conditions. In JavaScript we have the following conditional statements: ● Use if to specify a block of code to be executed, if a specified condition is true ● Use else...Discussgo to statment