Python for Robotic Process Automation

Best Tool To Streamline/Automate Business Processes: Python RPA.

24

9 Hours

Navigate

The Ultimate CSS Tutorial for Beginners

Data Structure Tutorial for Beginners

ReactJS Tutorial for Beginners

Java Tutorial for Beginners

Node.js Tutorial for Beginners

SQL Tutorial for Beginners

Variables and Data Types in JavaScript

Content

  • Variables
  • Data Types
  • Example
  • Activity
  • Quiz
  • Updated on 10/09/2024
  • 450 Views

Variables

Used to store data values. Declared using var, let, or const.

Data Types

  • Primitive Types: Number, String, Boolean, Undefined, Null, Symbol. Complex Types: Object, Array.

Example

  • image

Activity

  • Write a JavaScript program that declares variables of different types and prints them to the console.

Quiz

1. Which keyword is used to declare a variable that can be reassigned?

  • a) var
  • b) let
  • c) const
  • d) All of the above

2. True or False: null and undefined are the same in JavaScript

  • a) True
  • b) False

3. What data type is 42?

  • a) String
  • b) Number
  • c) Boolean
  • d) Object

4. Which of the following is a primitive type in JavaScript?

  • a) Object
  • b) Array
  • c) Symbol
  • d) Function

5. True or False: Variables declared with const can be reassigned.

  • a) True
  • b) False

Unlock Expert Career Advice For Free

Form Illustration
+91

Join 5M+ Learners & Transform Your Career

Learn on a personalised AI-powered platform that offers
best-in-class content, live sessions & mentorship from
leading industry experts.

Top Resources

Recommended Programs

Post Graduate Programme in Data Science & AI (Executive)

Post Graduate Programme in Data Science & AI (Executive)

  • Executive PG Program
  • 12 Months
  • Complimentary Python Bootcamp
Post Graduate Programme in Data Analytics (Executive)

Post Graduate Programme in Data Analytics (Executive)

  • Executive PG Program
  • 12 Months
  • Complimentary Python Bootcamp
Post Graduate Programme in Digital Marketing

Post Graduate Programme in Digital Marketing

  • Executive PG Program
  • 12 Months
  • Complimentary Python Bootcamp

© 2025 LEJHRO. All Rights Reserved.