Skip to content

Welcome to the JavaScript repository! This repo contains various JavaScript files demonstrating different concepts, from basic syntax and data types to advanced features like DOM manipulation.

License

Notifications You must be signed in to change notification settings

pratyush0898/Javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Repository

Welcome to the JavaScript repository! This repo contains various JavaScript files demonstrating different concepts, from basic syntax and data types to advanced features like DOM manipulation.

Files in this Repository:

  • .gitignore: Specifies files and directories that should be ignored by Git.
  • js.html: An HTML file to test and run the JavaScript scripts.
  • LICENSE: The license for this repository.
  • node.js: A readable JavaScript file with comments explaining each concept.
  • script.js: A JavaScript file that is more optimized for execution. This file is meant to be directly run in environments like browsers or Node.js.

Key JavaScript Concepts Covered:

  1. Comments:

    • Single-line (//) and multi-line (/* ... */) comments.
  2. Data Types:

    • null, number, Symbol, String, BigInt, Boolean, and undefined.
  3. Variables:

    • Using let, const, and var to declare variables.
  4. Operators:

    • Arithmetic, Assignment, Comparison, and Logical operators.
  5. Functions:

    • Function declarations and arrow functions.
  6. Loops:

    • for loop, for...in loop, and for...of loop.
  7. Strings:

    • String properties, methods, and escape sequences.
  8. Arrays:

    • Array methods like push, pop, shift, unshift, concat, and sort.
  9. DOM Manipulation:

    • Basic DOM manipulation methods.

Purpose of Each File:

  • node.js: A well-documented, readable JavaScript file to help developers understand various JavaScript concepts with comments and examples.
  • script.js: A concise, clean JavaScript file designed to be executed. It has less explanation and focuses on functionality.

How to Use:

  1. Run in Browser:

    • Open js.html in a browser to test the JavaScript code included in the HTML file.
  2. Run with Node.js:

    • Use Node.js to execute script.js by running node script.js in your terminal.

License:

This repository is licensed under the Apache 2.0 License.

About

Welcome to the JavaScript repository! This repo contains various JavaScript files demonstrating different concepts, from basic syntax and data types to advanced features like DOM manipulation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published