<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hina M.M</title>
    <description>The latest articles on DEV Community by Hina M.M (@hmmalic).</description>
    <link>https://dev.to/hmmalic</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F940197%2F94cd1737-d216-4a90-98ec-120dec935641.jpg</url>
      <title>DEV Community: Hina M.M</title>
      <link>https://dev.to/hmmalic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hmmalic"/>
    <language>en</language>
    <item>
      <title>A Beginner's Guide to For, While, and Nested Loops in JavaScript-</title>
      <dc:creator>Hina M.M</dc:creator>
      <pubDate>Thu, 06 Apr 2023 07:43:52 +0000</pubDate>
      <link>https://dev.to/hmmalic/a-beginners-guide-to-for-while-and-nested-loops-in-javascript--4g2f</link>
      <guid>https://dev.to/hmmalic/a-beginners-guide-to-for-while-and-nested-loops-in-javascript--4g2f</guid>
      <description>&lt;p&gt;If you're learning to code in JavaScript, you'll quickly find that loops are a fundamental part of the language. Loops allow you to repeat a block of code multiple times, making your code more efficient and flexible. There are three types of loops in JavaScript: for, while, and nested loops. In this post, we'll explore each type of loop in detail, and provide examples to help you understand how they work.&lt;/p&gt;

&lt;p&gt;For Loops&lt;/p&gt;

&lt;p&gt;A for loop is used to iterate over a range of values, such as an array or a string. The basic syntax for a for loop looks like this:&lt;/p&gt;

&lt;p&gt;for (initialization; condition; increment/decrement) {&lt;/p&gt;

&lt;p&gt;Code to be executed&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Let's break down each part of the " for loop "syntax:&lt;/p&gt;

&lt;p&gt;Initialization: This is where you set the initial value of the loop variable. For example, if you want to loop through an array, you might set the loop variable to 0.&lt;/p&gt;

&lt;p&gt;Condition: This is the condition that is checked before each iteration of the loop. If the condition is true, the loop continues; if it's false, the loop ends.&lt;/p&gt;

&lt;p&gt;Increment/decrement: This is how the loop variable is changed on each iteration of the loop. You can either increment the loop variable (i++) or decrement it (i--).&lt;/p&gt;

&lt;p&gt;Example 1: Printing numbers from 1 to 5&lt;/p&gt;

&lt;p&gt;for (let i = 1; i &amp;lt;= 5; i++) {&lt;/p&gt;

&lt;p&gt;console.log(i);&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;This will output:&lt;/p&gt;

&lt;p&gt;1&lt;/p&gt;

&lt;p&gt;2&lt;/p&gt;

&lt;p&gt;3&lt;/p&gt;

&lt;p&gt;4&lt;/p&gt;

&lt;p&gt;5&lt;/p&gt;

&lt;p&gt;While Loops:&lt;/p&gt;

&lt;p&gt;A while loop is used when you don't know how many times you need to iterate, but you know the condition that must be met for the loop to continue. The basic syntax for a while loop looks like this:&lt;/p&gt;

&lt;p&gt;while (condition) {&lt;/p&gt;

&lt;p&gt;Code to be executed&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;The condition is checked before each iteration of the loop. If it's true, the loop continues; if it's false, the loop ends. Here's an example of a while loop that generates random numbers until a number greater than 0.5 is generated:&lt;/p&gt;

&lt;p&gt;let randomNum = Math.random();&lt;/p&gt;

&lt;p&gt;while (randomNum &amp;lt;= 0.5) {&lt;/p&gt;

&lt;p&gt;console.log(randomNum); randomNum = Math.random();&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Nested Loops:&lt;/p&gt;

&lt;p&gt;A nested loop is a loop inside another loop. Here's an example of how to use nested loops to print out all the possible combinations of fruits and colors:&lt;/p&gt;

&lt;p&gt;let fruits = ["apple", "banana", "orange"]; let colors = ["red", "yellow", "orange"];&lt;/p&gt;

&lt;p&gt;for (let i = 0; i &amp;lt; fruits.length; i++) {&lt;/p&gt;

&lt;p&gt;for (let j = 0; j &amp;lt; colors.length; j++) {&lt;/p&gt;

&lt;p&gt;console.log(fruits[i] + " " + colors[j]);&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;This will output :&lt;/p&gt;

&lt;p&gt;apple red&lt;/p&gt;

&lt;p&gt;apple yellow&lt;/p&gt;

&lt;p&gt;apple orange&lt;/p&gt;

&lt;p&gt;banana red&lt;/p&gt;

&lt;p&gt;banana yellow&lt;/p&gt;

&lt;p&gt;banana orange&lt;/p&gt;

&lt;p&gt;orange red&lt;/p&gt;

&lt;p&gt;orange yellow&lt;/p&gt;

&lt;p&gt;orange orange&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Loops are an essential part of JavaScript programming. For loops are used to iterate over a range of values, while loops are used when you don't know how many times you need to iterate, and nested loops are used when you need to perform multiple iterations over two or more arrays. By understanding the basics of loops.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>loops</category>
      <category>programming</category>
      <category>coding</category>
    </item>
    <item>
      <title>My learning journey to Javascript -Week 2</title>
      <dc:creator>Hina M.M</dc:creator>
      <pubDate>Thu, 16 Feb 2023 13:40:02 +0000</pubDate>
      <link>https://dev.to/hmmalic/my-learning-journey-to-javascript-week-2-58b9</link>
      <guid>https://dev.to/hmmalic/my-learning-journey-to-javascript-week-2-58b9</guid>
      <description>&lt;p&gt;Week -2&lt;/p&gt;

&lt;h1&gt;
  
  
  programming #beginners #javascript #computerscience #womenintech
&lt;/h1&gt;

&lt;p&gt;This week, I learned about functions in JavaScript, and I must say, it was quite an interesting experience. I discovered several types of functions, including function concise, function expression, and function declaration.&lt;/p&gt;

&lt;p&gt;Functions are a big part of coding, and they're like little tools that we can use to solve problems. You can think of them like Lego blocks that we can put together to build something cool.&lt;/p&gt;

&lt;p&gt;There are a few different types of functions in JavaScript, but they all do basically the same thing: they take some input (like numbers or text), and they give us an output (like a result or a message).&lt;/p&gt;

&lt;p&gt;One type of function is called a "function expression." This just means that we give the function a name and then use that name like a tool whenever we need it. It's kind of like a hammer that we keep in our toolbox and take out when we need to nail something.&lt;/p&gt;

&lt;p&gt;Another type of function is called a "function declaration." This is where we use the word "function" to tell the computer that we're creating a function. It's like telling the computer, "Hey, I'm going to build a new tool here!" And then we give that tool a name and tell it what to do.&lt;/p&gt;

&lt;p&gt;We can also use something called an "arrow function," which is just a shorter way of writing a function. This is like a shorthand way of building a tool that we can use to solve a problem quickly and easily.&lt;/p&gt;

&lt;p&gt;To use these tools, we "call" the function by using its name and giving it some input. For example, if we have a function that adds two numbers together, we can call it like this:&lt;/p&gt;

&lt;p&gt;function addNumbers(num1, num2) {&lt;/p&gt;

&lt;p&gt;return num1 + num2;&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;const result = addNumbers(3, 5);&lt;/p&gt;

&lt;p&gt;console.log(result);&lt;/p&gt;

&lt;p&gt;This code will print the number 8 to the console, because we're calling the addNumbers function with the input values of 3 and 5.&lt;/p&gt;

&lt;p&gt;If you're just starting out with coding, it can be really helpful to practice using functions by building small projects. One fun project that you can try is creating a Rock Paper Scissors game. You can use functions to define the rules of the game and to keep track of the score.&lt;/p&gt;

&lt;p&gt;Remember, functions are just tools that we use to solve problems. By learning how to use them, you can start building your own programs and solving your own coding challenges. And if you're ever stuck or need help, there are always resources available, like online tutorials or coding communities, that can help you along the way.&lt;/p&gt;

&lt;p&gt;I got to practice my learning through a fun project, Rock, Paper &amp;amp; Scissors game.&lt;/p&gt;

&lt;p&gt;For those who may not be familiar with it, Rock Paper Scissors is a classic game where two players each choose one of three options: rock, paper, or scissors. The winner is determined based on a set of rules: rock beats scissors, scissors beat paper, and paper beats rock.&lt;/p&gt;

&lt;p&gt;To build the game, I used functions to define the rules of the game and to keep track of the score. I also used conditional statements (like "if" and "else" statements) to check which player won and to update the winner accordingly.&lt;/p&gt;

&lt;p&gt;The code was broken into 4 parts :&lt;/p&gt;

&lt;p&gt;Get the user's choice&lt;/p&gt;

&lt;p&gt;Get the computer's choice&lt;/p&gt;

&lt;p&gt;Compare the two choices and determine a winner&lt;/p&gt;

&lt;p&gt;Start the program and display results.&lt;/p&gt;

&lt;p&gt;One thing I learned through this project is that coding can be a bit like playing a game of Rock Paper Scissors. You have to think about all the different possible outcomes and plan for them accordingly. Just like in the game, there are a lot of different moves you can make in coding, and it's important to choose the right one for the situation.&lt;/p&gt;

&lt;p&gt;Another thing I learned is that coding is a lot like learning a new language. There are a lot of new words and concepts to learn, but once you start to understand them, you can use them to create your own programs and express your ideas in a whole new way.&lt;/p&gt;

&lt;p&gt;Overall, the Rock Paper Scissors project was a really fun and rewarding way to put my coding skills to the test. By working on this project, I was able to solidify my understanding of functions and other key programming concepts, and I'm excited to continue building my coding skills in the future.&lt;/p&gt;

&lt;p&gt;Any suggestions and feedback are most welcome, Thanks!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>My learning journey to Javascript- Week 1</title>
      <dc:creator>Hina M.M</dc:creator>
      <pubDate>Tue, 07 Feb 2023 16:03:48 +0000</pubDate>
      <link>https://dev.to/hmmalic/my-learning-journey-to-javascript-week-1-1igj</link>
      <guid>https://dev.to/hmmalic/my-learning-journey-to-javascript-week-1-1igj</guid>
      <description>&lt;p&gt;Introduction to JavaScript:&lt;/p&gt;

&lt;p&gt;Hey there! Today, I wanted to document my journey of learning JavaScript. It's a high-level, interpreted programming language that's widely used for developing dynamic and interactive web applications. It was created back in 1995 by Brendan Eich and has become one of the most popular programming languages out there. The best part about JavaScript is that it's a scripting language, which means the code is interpreted and executed in real-time, making it a great option for those starting out and wanting to build things quickly.&lt;/p&gt;

&lt;p&gt;Getting Started with JavaScript:&lt;/p&gt;

&lt;p&gt;So as I first started learning JavaScript, one of the first things I learned was how to log data to the console. The console is a panel that displays messages and is a lifesaver when it comes to debugging your code. To log data to the console, you use the console.log() method.In other words it prints what ever lies between the parenthesis (...) For example:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;console.log("Hello, World!");&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O5dV8C6e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1rll5aajpje6om3cpau.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O5dV8C6e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1rll5aajpje6om3cpau.png" alt="Image description" width="640" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Comments in JavaScript:&lt;/p&gt;

&lt;p&gt;Another important part of writing good code is including comments. Comments are lines of text in your code that the interpreter ignores, but they provide context and explanations for other developers and makes the code more readable. There are two types of comments in JavaScript: single-line comments and multi-line comments.&lt;/p&gt;

&lt;p&gt;Single-line comments start with //:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;// This is a single-line comment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Multi-line comments start with /* and end with */:&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;/&lt;/em&gt;&lt;br&gt;
This is a&lt;br&gt;
multi-line comment&lt;br&gt;
&lt;em&gt;/&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Data Types in JavaScript:&lt;/p&gt;

&lt;p&gt;There are seven fundamental data types in JavaScript: strings, numbers, booleans, null, undefined, symbol, and object.&lt;/p&gt;

&lt;p&gt;Let's take a look at them briefly :&lt;br&gt;
Data Types in JavaScript:&lt;/p&gt;

&lt;p&gt;Strings are characters wrapped in single or double quotes: 'Sample String'&lt;/p&gt;

&lt;p&gt;Numbers are any number without quotes: 23.8879&lt;br&gt;
Booleans are either true or false&lt;br&gt;
Operators and Expressions:&lt;/p&gt;

&lt;p&gt;Strings: A string is a sequence of characters used to represent text. It can be declared using single quotes ('') or double quotes (""). For example, &lt;strong&gt;'Hello, World!'&lt;/strong&gt; and **"Hello, World!" **are both strings in JavaScript.Imagine a friendship bracelet with name , easy way to remember string as characters . &lt;/p&gt;

&lt;p&gt;Numbers: A number is a data type that represents numeric values. In JavaScript, there is only one type of number, which can be either an integer or a floating-point value. For example, &lt;strong&gt;10, -5, 3.14&lt;/strong&gt; are all numbers in JavaScript.&lt;/p&gt;

&lt;p&gt;Booleans: A boolean is a data type that represents two possible values: true or false. It is often used in conditional statements to control the flow of a program. For example,** true or false.**&lt;/p&gt;

&lt;p&gt;Null: The null value represents the intentional absence of any object value. It is often used to indicate that an object has no value. For example,** let x = null;&lt;br&gt;
**&lt;br&gt;
Undefined: The undefined value represents the absence of a value for a variable that has been declared but has not been assigned a value. For example,** let x; console.log(x); // Output: undefined**&lt;/p&gt;

&lt;p&gt;Symbol: A symbol is a unique and immutable data type that is used to identify object properties. It was introduced in ECMAScript 6 and is useful for creating unique keys for objects. For example, &lt;strong&gt;let sym = Symbol();&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Object: An object is a data type that represents a collection of properties. Like many other programming languages, JavaScript's objects are comparable to actual physical objects. An object in JavaScript is a separate entity having properties and a type. Consider comparing it to a cup. A cup is an item with characteristics. A cup has a design, weight, color, material, and other characteristics. In a similar manner, JavaScript objects can have properties that specify their attributes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a-sL1oZ9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/45yjvvqf2fau7bpiczwe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a-sL1oZ9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/45yjvvqf2fau7bpiczwe.png" alt="Image description" width="612" height="615"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Arithmetic Operators:&lt;/p&gt;

&lt;p&gt;I learned about the built-in arithmetic operators, including +, -, *, /, and %. These operators allow us to perform basic mathematical operations in our code. I also got to know that JavaScript provides some built-in objects, such as Math, that we can use in our programs.&lt;/p&gt;

&lt;p&gt;Objects: &lt;br&gt;
So, what are objects in JavaScript? Simply put, objects are collections of information, also known as properties, and actions, also known as methods. The properties store information about the object, while the methods perform actions on that object.&lt;/p&gt;

&lt;p&gt;Let's take an example. If we have a string "Hello", we can access its length property by using the dot operator (.) like this: "Hello".length. This will give us the number of characters in the string, in this case 5.&lt;/p&gt;

&lt;p&gt;In addition to properties, objects can also have methods. Methods are actions that an object can perform. For example, if we have the string** "hello"&lt;strong&gt;, we can convert it to uppercase by using the toUpperCase method like this: **"hello".toUpperCase().&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Another important aspect of objects in JavaScript is built-in objects. Built-in objects are objects that are already provided in JavaScript, such as Math. These objects come with their own properties and methods that we can use in our code, saving us the time and effort of having to create our own.&lt;/p&gt;

&lt;p&gt;To summarize, objects in JavaScript are collections of information (properties) and actions (methods) that we can access using the dot operator (.). Built-in objects, such as Math, are provided for us and come with their own properties and methods.&lt;/p&gt;

&lt;p&gt;I hope this introduction to JavaScript has been helpful for you as a beginner. There is much more to learn about JS , &lt;/p&gt;

&lt;p&gt;Please feel free to share your thoughts and feedback/suggestions in the comments section below. I would love to hear from you .&lt;/p&gt;

&lt;p&gt;Stay tuned for more informative blogs, and happy coding!&lt;/p&gt;

&lt;p&gt;Let's learn and build together !&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>javascript</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Harvard WECode Conference 2023</title>
      <dc:creator>Hina M.M</dc:creator>
      <pubDate>Mon, 21 Nov 2022 18:01:10 +0000</pubDate>
      <link>https://dev.to/hmmalic/harvard-wecode-conference-2023-9ag</link>
      <guid>https://dev.to/hmmalic/harvard-wecode-conference-2023-9ag</guid>
      <description>&lt;p&gt;The Harvard Women Engineers Code (WECode) team is thrilled to announce our annual conference, the largest student-run Women in Computer Science conference in the world, on Feb. 18 to 19, 2023! &lt;/p&gt;

&lt;p&gt;Get a chance to connect with recruiters from organizations like Microsoft, Google, Bloomberg, and Capital One, as well as a strong network of technologists.&lt;/p&gt;

&lt;p&gt;This event is encouraging undergraduate women to explore tech, cultivate networks, and learn what the world of tech has to offer.&lt;/p&gt;

&lt;p&gt;ENSURE TO ATTEND, as the career expo will feature Google, Bloomberg, SIG, and more. There will also be mentorship, mock interviews, free swag, and fireside conversations with prominent STEM figures.&lt;/p&gt;

&lt;p&gt;This conference can be attended in person or Virtually.&lt;/p&gt;

&lt;p&gt;Some of the 30+ speakers include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maria Klawe President of Harvey Mudd&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-Dwana Franklin-Davis, CEO of Reboot Representation&lt;/p&gt;

&lt;p&gt;-Emi Nietfeld, Author of Acceptance, previous software engineer at Google and Facebook&lt;/p&gt;

&lt;p&gt;-Hannah Weissman Director of Policy for Code.org&lt;/p&gt;

&lt;p&gt;-Barbara Jane Liskov, MIT Institute Professor, Turing Award Winner&lt;/p&gt;

&lt;p&gt;You can use my referral link to get an additional 15% off on the early bird discount. Also, this conference is for women in an undergraduate program.&lt;/p&gt;

&lt;p&gt;promo code: WETF03&lt;br&gt;
website: &lt;a href="https://bit.ly/wecode2023"&gt;https://bit.ly/wecode2023&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To facilitate attendees attend the conference in person , Harvard is offering two kinds of scholarships as well. &lt;/p&gt;

&lt;p&gt;1) WE Amplify Basic Scholarship (those identify as a woman or of a gender minority of any race/ethnicity). This scholarship covers the cost of the conference ticket.&lt;/p&gt;

&lt;p&gt;2) WE Amplify Extended Scholarship (those identify as a woman or of a gender minority of any race/ethnicity). This scholarship covers the cost of the conference ticket, and provides financial aid for travel and other related expenses.&lt;/p&gt;

&lt;p&gt;The deadline to apply for a scholarship is December 31, 2022. Applicants will be notified via email on their decision. Scholarship recipients will be announced on a rolling basis. &lt;/p&gt;

&lt;p&gt;More details can be find out &lt;a href="https://www.harvardwecode.com/weamplify-scholarship"&gt;https://www.harvardwecode.com/weamplify-scholarship&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tnqsRU6Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ougx3yjrn0qtcwbs6brm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tnqsRU6Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ougx3yjrn0qtcwbs6brm.jpg" alt="Image description" width="880" height="880"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wecode</category>
      <category>womenintech</category>
    </item>
  </channel>
</rss>
