I still have a low understanding of the if/else statements but it is a learning process. I know that based on the previous assignments, if/else statements can be used to decide based conditions or to set conditions. These condition statements would let us know if the function is true or false. If the condition happens to be true, it will continue the loop until it is proven false. If the condition happens to be false, the coding block will be exterminated. These if/else statements could be made in easy scripts, to difficult algorithms. Normally, for these conditions, you would have to make sure that it makes sense and put certain variables right before others. I personally think that this is just the surface level of what if/else statements could really do. Even now, it can still get a little bit tricky, but as they say, practice makes perfect.
Posts
(5B) What is a function in JavaScript, and what do all functions have??
When it comes to JavaScript this is a coding language that is made for users to interact with websites or games. JavaScript has these things called functions where it enables interactions with the software. In these functions, you have variables that are the key to a function. All functions in JavaScript have things like names, bodies, and symbols. Functions in JavaScript can be defined in multiple ways, including using function declarations, function expressions, and arrow functions. “They can also be nested, meaning that one function can call another function to perform a specific task”. All functions in JavaScript have a name, parameters, a body, and an optional return statement. Understanding functions is essential for understanding difficult applications and building reusable code. For now this is just the surface of knowledge for java script, as there are plenty of more things to learn about putting together a function, or just creating an interface using this tool / language.
5a Post: (Javascript and MySpace)
Javascript is a scripting language use to create dynamic content for the web (including websites, applications, servers, and games) and is considered one of the core technologies of the internet (A., 2023). Most websites on the internet use Javascript. When I think of Javascript, I always think of Myspace. If you had a Myspace account when it was popular in the early 00s, you know what actually what I’m talking about. For anyone who may not know, Myspace was a social media website where you could customize your profile by adding themes to your page. You could also add music to your page. To do so you had to do some coding. You would find codes and edit them for it to work. We were all coding without realizing it. I always think about how cool it was customizing my page that way when I was thirteen years old. I can’t imagine coding for a career though. But it was nice to get some insight into coding.
A., J. (2023, January 31). What is JavaScript? A basic introduction to JS for Beginners. Hostinger Tutorials. Retrieved March 2, 2023, from https://www.hostinger.com/tutorials/what-is-javascript
(5A) What are the arithmetic operators in JavaScript, and what do they all do?
Java script is a coding language that is made for users to interact with websites or games. When you are working with functions, they have a chance of containing arithmetic operators. Arithmetic operators are mathematical operations that are applied to functions, loops or anything else that has to do with Java script. These operators used in PEMDAS are +, -, * or multiplication and / or division. There are other operators that can be used, such as the modulus operator(%). This is used for returning the remainder after the division. Another one is the increment operator or ++. This is used to increase the value of any variable by 1. Lastly, you have the decrement or – -.This is the opposite of the increment operator, as this one is used to decrease the value of any variable by 1. Arithmetic operators could also be used to be placed together in order to change the output of a variable.
(4B) What are the three types of artificial intelligence, and what are some examples of each?
As far as I understand, there are three types of artificial intelligence that I have learned about in this course so far. The first type of artificial intelligence is nai or narrow artificial intelligence. Narrow artificial intelligence is an AI that has a limited part of mind. These types of AI are normally used as your everyday siri, alexa or even self driving cars. ANI can also be used as recognition software for devices and vehicles. Another form of AI would be AGI or just artificial general intelligence. This type of artificial intelligence is used for tasks that cannot be solved by humans or just intermediate tasks. AGI actually has the ability to surpass the human mind when it comes to intelligence. And lastly, you have ASI or artificial super intelligence. ASI is an artificial intelligence that is capable of almost everything possible. Human intelligence doesn’t stand a chance when it comes to ASI’s problem-solving, decision making and forecast.
(4A) Who are product managers and what do they do??
I think that product managers are people who supervise the products that are produced in a company. They are often responsible for the development, marketing, and sales for the products of a company. The team they often work with include engineers, marketers and other developers for products. The main role of a product manager is to make sure that a product is successful in the market. “Throughout the product life cycle, product managers are responsible for monitoring product performance and making adjustments to ensure that it remains competitive and profitable”(Business901.com). They can also tend to get their hands dirty when it comes to packing and designs of products. To make sure that they are doing a good job, product managers must have strong communication with the team, analytical, and strategic thinking skills. Product managers are needed for everyday products that are used, so people should appreciate these professionals for helping us get that I phone we’ve all been looking at.
If/Else Statements
If/else statements run code based on whether a condition is true or false. If the condition of the first statement is the “if” statement, the code will execute that statement. If the conditions are not met, then it will go to the “else” statement and execute that code. You can use if/else statements over multiple conditions by using “if else”. We used this code during the day-of-the-week challenge where a certain number typed in would equate to the day of the week. The basic syntax of an if/ else statement looks like this:
if( this condition is met) {
do this;
} else {
Do this;
}
“If” statements do not always need and “else” if you are only worried about meeting one condition. When you want to check for multiple conditions, you would then use “if/else” statements. It is important to note that “else” statements cannot take the form of a Boolean. Boolean can only golf two possible values, true or false.
Loops, Loops, & More Loops
A loop is, as we learned in class, a sequence of instructions that is repeated until a certain condition is reached. As we have learned, creating long and repeating codes is a huge no-no in the coding world. So, loops allow code to be condensed to prevent what could potentially be long strands of repeating code into just a few lines. Also, loops will quite literally loop the information until the desired outcome is reached. Whenever I think of loops this way, it helps me remember exactly what they are and how they work. How are loops used in the real world? Well, a good example is something as simple as an ATM machine. These machines loop the information until the user prompts that they are completely done with their interaction. Then, that transaction is ended and ready for another user to begin using the machine. All in all, loops are important to know when coding and have been proven to be very useful.
Image link: https://codeburst.io/june-17-2017-switch-case-loops-what-does-the-fox-say-b6676909c36d
(3B) What are descriptive and predictive analytics??
These are two different types of analytics that involve different types of summarizations. Descriptive and predictive analytics are two types of data analysis techniques both used by businesses to gain insights and make informed decisions. I know that most jobs require a certain amount of analytics in order to get the job done. Descriptive analytics is about analytics that are summarized and describe a mass collection of information. “It involves data aggregation and data mining techniques to summarize data and identify patterns and trends”(On hbs.edu). It uses either past or current data to predict future trends, behaviors, events, helping businesses to make informed decisions and plan for the future. That is why both are different. It is because descriptive analytics is based on info in the current moment, while predictive analytics is based on the future. Both types of analytics are important for businesses, as they provide insights that can help with strategic planning, resource allocation, and decision-making.
(3A) What is the purpose of CRM?
Customer Relationship Management (or CRM) is something that is used to help organizations better manage their interactions with customers. The main reason why people use CRM is to “improve customer satisfaction, loyalty, and retention, ultimately driving business growth and profitability” (from the playbook of retention). CRM’s software is used to manage customer information, track interactions, and automate customer service, sales, and marketing processes. An example would be Salesforce and how you can use that to build connections with potential clients. With the use of CRM, organizations can provide personalized customer experiences, improve communication, and increase customer engagement. This enhances customer loyalty and retention, ultimately increasing the revenue. CRM also helps organizations to identify high valued customers and prioritize their needs. It can also enable targeted marketing and sales efforts which can improve the efficiency of these activities and increase their effectiveness. In conclusion, CRM is used to help organizations build and maintain strong relationships with their customers by understanding and meeting their needs effectively.