Common Built-in function in JS

Duration: 7 min

This video lesson is available to enrolled students.

Return to /learn/UP-POLICE-COMPUTER-OPERATOR/the-internet/server-side-security/server-side-scripting/asset-common-built-in-function-in-js after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About the course: About the Course
  2. General Knowledge: Polity, Physics, Biology, State Wise GK, Chemistry, History, Geography, GK- Current Affairs, Indian Economy, Static General Knowledge, Environment, Evolution of Indian Banking (Banking & Financial Awareness)
  3. Mental Aptitude and Reasoning: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Permutation and Combination, Number System, Sequence and Series (Series), Speed Time and Distance, Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Vocabulary, Profit and Loss, Arithmetic, Mental Ability, Percentage, Algebra, Mensuration and Geometry, Age Problems, Clock, Calendar, Verbal Analogy (Word Based Analogy), Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Analogy, Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Selection Decision Table (Decision Making), Cubes & Dices, Blood Relations, Venn Diagram, Logical Sequence Of Words, Inequality, Directions (Direction Test), Data Arrangement, Facts, Inference and Judgements, Syllogisms, Seating Arrangements, Ranking, Order and Sequence
  4. CS | Computer Fundamentals: Basics of COA, Number System, Number Representation, C Fundamentals, Algorithm Analysis, Input Output Organisation
  5. CS | Database Management System: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, SQL
  6. CS | Workplace productivity Tools: MS Office Applications, Keyboard Shortcuts
  7. CS | Computer Networks: Introduction to CN, Data Communication, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Transport Layer Services, Application Layer, Hardware Basics, Network Security
  8. CS | The Internet: Website, Browser & Services, Internet Fundamentals, Web Design & Development, Web Publishing & Hosting, Server Side & Security, Emerging Technologies
  9. CS | Emerging Technologies: Artificial Intelligence, Emerging Tech Trends, Introduction to OS, Windows OS, Linux OS, Unix OS, JavaScript-Basics
  10. CS | Boolean algebra: Digital Systems & Boolean Basics, Boolean Expression, Boolean Minimization, Logic Gates & Hardware
  11. CS | Data Structures: Introduction to DS, Array, Stack, Queue
  12. CS | Cryptography: Society, Law & Ethics, Cyber Threats and Malware Attacks, Role of Internet and Web Services, Security in Mobile and Wireless Computing, Electronic Data Interchange and E-Commerce, Physical Security and Cryptography Basics, Intrusion Detection Systems (IDS), Cyber Safety and Security
  13. UP Police Previous Year Papers:
  14. UP Police Full Mock Tests:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This educational video provides a detailed lecture on JavaScript's common built-in functions, specifically focusing on type validation and conversion utilities. The instructor uses a PDF slide deck titled Common Built-in Functions to guide the lesson, supplementing the text with handwritten annotations and code examples to demonstrate practical usage. The session covers the isNaN, parseFloat, and parseInt functions in depth, followed by a brief introduction to JavaScript arrays.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The instructor begins by analyzing the isNaN() function from the provided table, which has columns labeled Functions and Description. She writes Is Nan at the top of the screen to emphasize the topic. She reads the description aloud, noting that the function returns true if the object is Not a Number and false if it is a number. She specifically underlines the text Returns true, if the object is Not a Number and Returns false, if the object is a number. To illustrate this, she writes the code snippet document.write(isNaN(123)) and explains that the output will be false because 123 is a valid number. She contrasts this by writing document.write(isNaN(1kg)), explaining that since 1kg is a string and not a number, the function returns true.

  2. 2:00 – 5:00 02:00-05:00

    The lecture progresses to the parseFloat(string) and parseInt(string) functions. The instructor explains that parseFloat reads through a string until it finds the end of the number, cutting off the remainder. She writes 12.34pqr as an example, indicating that parseFloat would extract 12.34. Next, she discusses parseInt, which reads until the end of the integer. She writes parseInt(436pqr43) and explains it returns 436. She also points out the condition where if the string does not begin with a number or integer, the function returns NaN, writing NaN next to the description. She highlights the text If the string begins with an integer and If the string does not begin with an integer to show the logic flow.

  3. 5:00 – 7:07 05:00-07:07

    The instructor navigates to a multiple-choice question from an exam paper: In Javascript, what does is NaN function do?. She underlines the question and the options, specifically highlighting option (a) Return true, if the argument is not a number as the correct answer, citing the source APPSC Lect. Degree College 07.06.2017 (CS). The question asks for the behavior of the function, and the instructor confirms option (a) is correct based on the definition provided earlier. Finally, she scrolls down to a new section titled JavaScript Array, briefly displaying the syntax var arrayname=new Array(); before the video concludes. The KnowledgeGate watermark is visible in the background throughout this section.

The video effectively bridges theoretical definitions with practical application. It starts with validation using isNaN, moves to conversion using parseFloat and parseInt, and ends with a quiz question to reinforce the isNaN concept. The instructor's use of handwritten code directly on the slide helps clarify how these functions handle mixed strings and numbers, providing a clear visual aid for students learning JavaScript data types. This structured approach ensures students understand not just the syntax, but the logical conditions under which these functions operate.

Loading lesson…