AuthorThese blogs are ideas and learning's of Wynisco employees and Bootcamp students Archives
May 2024
Categories |
Back to Blog
There are different types of data that we can use in a JavaScript program.
For example,
Here,
JavaScript Data Types There are eight basic data types in JavaScript. They are:
Here, all data types except Object are primitive data types, whereas Object is non-primitive
JavaScript Variables
4 Ways to Declare a JavaScript Variable:
Variables are containers for storing data (storing data values). In this example, x, y, and z, are variables, declared with the var keyword: Example var x = 5; var y = 6; var z = x + y; In this example, x, y, and z, are variables, declared with the let keyword: Example let x = 5; let y = 6; let z = x + y; In this example, x, y, and z, are undeclared variables: Example x = 5; y = 6; z = x + y; From all the examples above, you can guess:
When to Use JavaScript const?
JavaScript Functions A JavaScript function is a block of code designed to perform a particular task.A JavaScript function is executed when "something" invokes it (calls it). Example
JavaScript Function Syntax
A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().Function names can contain letters, digits, underscores, and dollar signs (same rules as variables).The parentheses may include parameter names separated by commas:(parameter1, parameter2, ...)The code to be executed, by the function, is placed inside curly brackets: {}
Function parameters are listed inside the parentheses () in the function definition. Function arguments are the values received by the function when it is invoked. Inside the function, the arguments (the parameters) behave as local variables. A Function is much the same as a Procedure or a Subroutine, in other programming languages.
0 Comments
Read More
Back to Blog
Summary: Front End Developers are responsible for bringing design and functionality together. The difficulty with front end development is that the tools and techniques used to create the front end of a website changes all the time, so the developer must always be aware of how the field is evolving. Front end developers mainly focus on three tools called triad. This triad consists of HTML5, CSS, and JavaScript. These three technologies work together to bring websites to life. However, when frontend developers make mistakes, the triad loses communication and things go wrong. So, what are the most common blunders made by frontend developers? 1. Skipping image optimization Loading images on a web page consumes a significant amount of bandwidth, if the images are not optimized. Not all images should be compressed because the process degrades image quality. However, there is no reason why your thumbnails should be 15MB in size. Image optimization is also a simple process, and there are many free online tools available. And, because page load is dependent on so many other factors, including large images in the mix is unnecessary. 2. Responsiveness There are 3.5 billion smartphone users worldwide, accounting for roughly half of the global population. According to CNBC, by 2025, 72 percent of these users will be accessing the internet through their phone. We don't know for sure if the predicted data is correct, but the reality is that mobile usage has skyrocketed in the last five years and shows no signs of slowing down So, "do I make my website responsive?" should not even be a consideration. You should, of course. When to begin working on responsiveness is the question. Some developers skip this step , preferring to focus on implementing the designs first. But, because you will almost never have more than one set of designs, you will only work on one screen resolution. Then, when you finally start working on responsiveness, you need to do a lot of testing and fixing, which takes a long time and is difficult. Avoid this by writing your CSS with responsiveness in mind from the start, and using tools that make your life easier, such as Viewport. It will save you a lot of trouble in the long run. 3. Bad SEO Because half of search engine optimization is determined by how the code is written, employing good SEO practices as a frontend developer is essential! Nonetheless, developers frequently skip steps such as using alt attributes for images used on the site. The problem is that crawlers read the alt attributes and use them to determine how relevant each image is to your site. Undeclared images are considered purely decorative and are ignored, so people will not be able to find them in their searches. However, if you have important images, such as portraits of your team or other images relevant to your business, you will want search engines to recognize them. Another blunder is misusing HTML heading styles. Or, using H3 instead of H1 because it looks nicer. Crawlers aren't concerned with how pretty the heading selection is; they're concerned with structure and proper hierarchy. So, if you want crawlers to notice the importance of each heading, style and use them correctly. Finally, look for both internal and external broken links. Crawlers "travel" by links, so when they come across a broken link, they report it as an error. Tools like Google Search Console and the "Check my links" chrome extension can assist you in locating and repairing these broken links. 4. Attention to detail Frontend developers strive to adhere to designs as closely as possible when implementing them. The problem is that reality often strikes hard on otherwise beautiful designs, causing them to be impractical, incompatible with different screen sizes, or something else. As a result, your web or mobile app will look strange and broken, unlike the beautiful pages your designer envisioned. This is common because design tools, such as XD or Zeplin, read designs differently than browsers. As a result, there are differences between the two versions. Frontend developers can easily avoid this by developing with the designs in front of them. It's similar to a "find the differences" game. In addition, paying attention to detail is a learned skill. As a result, always solicit feedback from your designer, in particular. Their mainframe is more UI/UX oriented than yours, and their eyes are probably better trained to spot small details. Listen to them and learn from them. 5. Cross-Browser compatibility Although modern browsers adhere to the same standards, cross-browser compatibility remains an issue. Particularly with regard to Internet Explorer. Essentially, because each browser renders pages differently, developers must thoroughly test the site on each browser to ensure cross-browser compatibility. We understand that this is a time-consuming process because it includes testing on the most commonly used screen resolutions for each browser. However, if you care about the user experience, you understand the significance of this.
On the bright side, there are testing tools available, such as BrowserStack, CrossBrowserTesting, LambdaTest, and others. So, take a look at them. Do not, under any circumstances, skip testing. 6. Outdated HTML or XHTMLAnother common error in HTML is inconsistency in syntax. HTML5 introduces a new, simpler syntax when compared to HTML4 or the now-defunct XHTML. Void elements such as "input", "br", and "img" are examples of void elements that replace self-close tags. While using self-closed tags has no effect on the page, they should not be used infrequently. Our best advice is to learn and use the new HTML5 syntax. 7. Bad Font StylingThe reason this error did not make the list is that font styling is typically the responsibility of the designer, not the frontend developer. Of course, many frontend developers are also designers; in that case, we can't help you if you continue to use bad font styling. However, when frontend developers don't have the luxury of poking a designer for feedback and must set the font styles themselves, they must be aware of a number of factors. The three most important factors are font size, color, and background. Text should not be too large or too small; it should be visible and easy to read. Don't forget that your text must be responsive as well. As a result, use relative units (percentages) rather than fixed units (pixels) or examples. 8. Forgetting input validationMaking the assumption that your users will enter the correct data in the correct fields is a common mistake among front end developers. However, this is an incorrect assumption, and it is strongly advised to use input validation at all times. This not only ensures that the correct data is stored in the correct format in your database, but it is also good UX practice. More importantly, input validation improves your security by preventing injection attacks, system compromises, and memory leakage. 9. Wrong HTML semantics HTML 5 also introduced a slew of semantic elements that help make a page's structure more logical and aid in indexing. However, some inexperienced developers abandon semantics like "from," "article," and "table" in favor of non-semantics like "div."This is both unnecessary and takes more time than following proper procedures. Furthermore, both of the errors mentioned here and in (4) can be avoided by using validators built into IDEs or code editors. 10. One HTML for everything For our final point, some developers combine everything into a single HTML file. HTML, CSS, and JavaScript are all contained in a single file. Stop if you are one of them. It's a mess, it's bad practice, and it's impossible to test with. The first step in avoiding this disaster is to move your JS files to an external folder. Second, become acquainted with native web components. There are numerous benefits to learning this, but the main one is that your project's architecture will be much better, and writing unit tests will be much easier. Frameworks like React or Vue can also make it easier to implement modular components, so keep that in mind. Note: By following these recommendations and avoiding the mistakes described in this article, you will significantly improve the quality of your code, making it more readable, structured and productive.
Back to Blog
Anyone who claims that life isn't stressful has never been to a job interview. Even the best of us can be stressed out by the pressure of looking professional, impressing your interviewer, and not coming across as nervous or overconfident.
This, combined with the fact that 2020 has not been the best year for job seekers, with more and more businesses closing due to the pandemic, it has only exacerbated the situation. As people begin their job search, we decided to dive in and collect the most recent interview statistics to help them pass their interview with flying colors. So, rather than sweating it out and attempting to figure out how to act, dress, or speak during an interview. Hiring Statistics to Consider1. Since 1980, the number of jobs requiring both analytical and social skills has increased by 94 percent. Since the 1980s, the labor market has changed dramatically. Many jobs necessitate advanced social and analytical skills. That is why jobs now require more preparation, whether through education, experience, or other forms of training. 2. According to 63 percent of recruiters, the most difficult problem they face is a lack of talent. According to 2020 hiring statistics, the level of talent shortage is more than three times higher than a decade ago. According to a recent survey conducted by the Manpower Group, which specializes in matching the right people with the right companies, nearly 70% of employers reported a lack of expertise in 2019. 3. Referrals outperform all other methods of hiring by 5x. According to this interesting interview fact, 51 percent of companies with a referral program say their cost per hire is significantly lower than any other recruiting source. Referral hires are more satisfied with their jobs and stay with companies for a longer period of time. 4. In 2017, the United States had 6 million job openings. According to Labor Department data, the United States has a record-high of 6 million job openings. At the time, 6.8 million Americans were looking for work as well. However, there was a mismatch between the available positions and the qualifications of the workers. 5. By 2025, millennials and Generation Z will account for 75% of the global workforce. According to Generation Z interview statistics, the workplace of the future is almost here. Millennials currently make up half of the American workforce, and the number of Gen Z and millennial employees is expected to increase by 25% by 2025. Virtual Interview Statistics6. Automation and artificial intelligence (AI) are expected to change the way recruiters work, according to 72 percent of those polled. However, 13 percent have already been affected by AI, and one in four have stated that their company's executives have been preparing for the impact of AI. However, skeptics, represented by 55% of HR personnel, believe that no displacement will occur as a result of AI over a three-year period. 7. Current statistics on job satisfaction among American workers. According to statistics, 49 percent of Americans are very satisfied with their jobs. In comparison, 3 out of 9 employees are satisfied, 9 percent are somewhat dissatisfied, and 6 percent are dissatisfied. Job Interview Statistics Based on First Impression8. You have only 7 seconds to make a good first impression. Everyone understands the significance of first impressions. You know you only have a few seconds, or about 7 seconds to be exact. So, smile, shake hands, dress well, speak clearly, and be as genuine as possible. 9. 71% of employers would not hire someone who does not adhere to the appropriate dress code. Style is a way to express yourself without having to speak. You might have great qualities and a winning attitude, but if you don't dress to impress, you'll have a difficult time getting a job. Although many leaders are attempting to reduce this type of thinking, it won't hurt to observe how the other employees in the company dress prior to your interview. So, keep these statistics on how to survive a job interview in mind and act accordingly. 10. 67% of job seekers are unable to make eye contact. The main piece of advice here is to maintain reasonable eye contact with the interviewer and try to be engaging in order to demonstrate your interest in the available role. According to statistics on how kindness affects a job interview, employers look for confidence and self-esteem in addition to friendliness, and appropriate eye contact goes a long way toward demonstrating that. 11. 39% of candidates are rejected because of their overall confidence, voice quality, or lack of a smile. A person's voice will always be the same, but the tone will change. The tone of their voice reflects how they feel. That being said, you should always maintain a positive, friendly, and confident tone. Remember to keep a smile on your face during these meetings. According to statistics on what matters most in a job interview, if you keep this in mind, you're more likely to get the job. 12. Ten percent of applicants are rejected because of poor handshakes. Nothing makes a better first impression than a firm handshake and a friendly greeting during a job interview. Unfortunately, there are bad handshakes that can be deal breakers during meetings and even be the reason for rejection, according to statistics on how many people are turned down during a job interview. So, practice before your interview, and don't forget to smile! Job Search Statistics 202213. In 2015, the average number of annual work weeks increased to 46.8. In 1980, the average number of working weeks was 43. Furthermore, the number of jobs requiring average to above-average education, experience, and training increased by 65 percent from 49 million in 1980 to 83 million in 2015. So, in simple terms, people today work more and are expected to be more qualified than they were 50 years ago. 14. Millennials have the highest unemployment and underemployment rates. Millennials are the rising generation of adults born between 1980 and 1995; 34% of millennials with a PhD are unemployed, while 30% of Millennial MDs are unemployed. They are also thought to be the most educated, with nearly 79 percent holding at least a bachelor's degree. Video Interview Statistics15. Video interviewing is used or has been used in the hiring process by 60% of HR managers. Platforms for video interviews have assisted organizations in providing a better hiring experience for their candidates. VidCruiter, MyInterview, SparkHire, AllyO, HireVue, OutMatch, Harver, RecRight, and Interviewer are the top nine video interviewing software used by HR. These softwares enable them to learn about the candidate's communication skills and personality while also receiving answers to all of their questions. 16. Video interviews are 6 times faster than telephone interviews. According to virtual interview statistics, video interviews are becoming more popular in recruitment. Ten video interviews can be conducted in the same amount of time as one phone interview (30minutes). What every company seeks is efficiency, and video interviews provide it in spades. Interesting Interview Statistics17. On average, 118 people apply for a single job. It's only natural to face competition when applying for a job. The average number of people who apply for a single job is 118, with only 20% of them being interviewed. So, the next time you're wondering how many applicants get interviews, remember that it's only one in every seven. 18. Job interviews last 45 minutes to an hour. If an interview lasts less than 15 minutes, it's probably a bad one. It's simply not long enough if it's only 30 minutes long. That being said, 45 minutes to an hour is the sweet spot — and this isn't just one of the random interview facts. The more time you spend with the interviewer, the more likely you are to get to know them, and vice versa. 19. 91 percent of employers prefer candidates with prior work experience. Almost 91 percent of employers said it was preferable if their candidate had some work experience. However, 65 percent of respondents said they preferred candidates with relevant work experience. Another 25% prefer any type of work experience, and only 5% say work experience isn't a big deal when it comes to hiring. 20. Unprofessional email addresses account for 76% of resume rejections. The most common reason for job rejection is unprofessional and inappropriate email addresses. However, your CV, like your email, should be professional. If you are not rejected because of your unprofessional email, you may be rejected because of your unprofessional CV. In fact, 43 percent of CVs are rejected because they are poorly written. 21. 47 percent of candidates failed the job interview because they did not know enough about the company to which they applied. According to job interview statistics, nearly half of all applicants failed the interview due to a lack of knowledge about the company and the job they desired. It is strongly advised that you conduct research on the company and the position you are applying for. 22. You will need two to three interviews with a single employer before landing a job. The average number of interviews required before landing a job is between two and three. Having said that, an employer will interview 6 to 10 people, and if they don't find the right fit after 2 to 3 interviews, they will simply find new candidates. As a result, the actual average number of interviews per job for recruiters is much higher — there is a significant amount of time and effort involved in finding the right person for the job. 23. Eighty percent of job openings are not posted online. Despite the fact that almost everything can be found on the internet, companies still do not post job openings on the internet. Many of them believe that word of mouth and internal recommendations will bring the best candidates forward. 24. Social media platforms are used by 92 percent of companies to find candidates. Because we live in the twenty-first century, it is expected that all corporations have social media platforms. As a result, every recruiter can easily look you up online. According to job interview statistics 2018, more than 70% of recruiters screen candidates by checking their social media profiles, while 43% of HR personnel regularly check their employees' profiles. LinkedIn is their preferred social media platform, so make sure your profile is up to date. 26. An astounding 85% of people lie on their resumes. This is now just one of many job interview facts. Most people who lie on their resumes do so because they lack sufficient work experience or the necessary skills for the position. However, you must understand that interviewers are trained to spot inconsistencies. Statistics on job interview questions show that they usually do this by asking you detailed questions about your previous work experience, purchasing background checks, and even contacting former employers to verify your CV information. In conclusion:The interview statistics listed above can help you better navigate the interview process. Check out some of the ideas in this article the next time you're invited to an interview for your dream job in law. From how long an interview should last to how to choose the appropriate dress code and how much time you have to make a good first impression. They should not, however, be taken as gospel, and sometimes getting a job is as simple as being yourself. So, instead of worrying and stressing, get a good night's sleep, relax, and go get them! |