en
Feedback
JAVASCRIPT_PROGRAMMING

JAVASCRIPT_PROGRAMMING

Open in Telegram

Hello! I am @imabhi3030 and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills. I am always present to help you. If you need any kind of assistance, just let me know! 😊

Show more
The country is not specifiedTechnologies & Applications103 796
284
Subscribers
+724 hours
+977 days
+25530 days
Posts Archive
// 3. shift()
let arrShift = [1, 2, 3, 4, 5];
let shifted = arrShift.shift();
console.log(shifted); // Output: 1
console.log(arrShift); // Output: [2, 3, 4, 5]

// 2. pop()
let arrPop = [1, 2, 3, 4, 5];
let popped = arrPop.pop();
console.log(popped); // Output: 5
console.log(arrPop); // Output: [1, 2, 3, 4]

// 1. push()
let arrPush = [1, 2, 3];
arrPush.push(4, 5);
console.log(arrPush); // Output: [1, 2, 3, 4, 5]

+9
javascript-unit-testing-tools.pdf0.72 KB

🌴 The Complete Front-End Web Development Course 🌴 ⬇️ Download Link :- https://mega.nz/folder/7z4wiJ4K#\_tOW2PH0-XxXVdgEn371ow ✅ Join For More: https://t.me/addlist/UTxZqUCuoM9jYjZl

class MorseCodeCipher {
  constructor() {
    // This is a JavaScript implementation of MorseCode Cipher
    this.morse_dict = {
      'A': '.-', 'B': '-...',
      'C': '-.-.', 'D': '-..', 'E': '.',
      'F': '..-.', 'G': '--.', 'H': '....',
      'I': '..', 'J': '.---', 'K': '-.-',
      'L': '.-..', 'M': '--', 'N': '-.',
      'O': '---', 'P': '.--.', 'Q': '--.-',
      'R': '.-.', 'S': '...', 'T': '-',
      'U': '..-', 'V': '...-', 'W': '.--',
      'X': '-..-', 'Y': '-.--', 'Z': '--..',
      '1': '.----', '2': '..---', '3': '...--',
      '4': '....-', '5': '.....', '6': '-....',
      '7': '--...', '8': '---..', '9': '----.',
      '0': '-----', ',': '--..--', '.': '.-.-.-',
      '?': '..--..', ' ': '/', '-': '-....-',
      '(': '-.--.', ')': '-.--.-'
    };

    this.reverse_morse = {};
    for (const [key, value] of Object.entries(this.morse_dict)) {
      this.reverse_morse[value] = key;
    }
  }

  encrypt(text) {
    let result = '';
    for (const ch of text.toUpperCase()) {
      result += this.morse_dict[ch] || ch;
      result += ' ';
    }
    return result.trim();
  }

  decrypt(text) {
    let result = '';
    for (const code of text.split(' ')) {
      result += this.reverse_morse[code] || code;
    }
    return result;
  }
}
(async ()=>{
const cipher = new MorseCodeCipher();
require("jsshort")
let work = await input("For decrypt 0 For encrypt enter any key: ")
if(work != '0'){
const plainText = await input("Enter text to encrypt: ")
const encryptedText = cipher.encrypt(plainText);
console.log('Encrypted Text:', encryptedText);
} else {
let enc = await input("Enter text to decrypt: ")
const decryptedText = cipher.decrypt(enc);
console.log('Decrypted Text:', decryptedText);
}
process.exit(0)
})()

Javascript NOTES -1.pdf5.85 KB

Join for all programming language more than 30+ channel you must join here useful channel like programming, hacking, notes everything 😁 👉 https://t.me/addlist/5MDFVZjV1Yo2NWI1

Web Development Professional Certification FREE FOR LIMITED ENROLLMENTS ONLY 🔗Enroll now- https://www.udemy.com/course/web-development-assessment/?couponCode=5BFF862F76F6227E3772 Invite your friends

// 1. push()
let arrPush = [1, 2, 3];
arrPush.push(4, 5);
console.log(arrPush); // Output: [1, 2, 3, 4, 5]

// #2 declaration of variables
let a = 1 // block scoped variable

var b = 2 // accessible from other blocks{}

const c = 3 // constant variable 
// it insures that program will not assign any value to it again

console.log("var1: " + a);

console.log("var2: " + b);

console.log("var3: " + c);

// @javascript_programmings

Join for all programming language more than 30+ channel you must join here useful channel like programming, hacking, notes everything 😁`` 👉 https://t.me/addlist/5MDFVZjV1Yo2NWI1

Jiske pass Laptop nhi hai 👇 Mobile best Compiler's C Compiler Click Here C++ Compiler Click Here Python Compiler Click Here Java Compiler Click Here Sql Compiler Click Here Universal Compilers for mobile Replit (web or app) Click Here Jdoodle(web or app) Click Here Programize (web) Search web

🔰 join ᴏᴜʀ ᴀʟʟ ᴄʜᴀɴɴᴇʟs for coding 🔰 ᴛᴇʀᴍᴜx ʜᴀᴄᴋɪɴɢ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴇʀᴍᴜx ᴄᴏᴍᴍᴀɴᴅ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴇʀᴍᴜx ᴛʀɪᴄᴋs ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴘʜᴘ ʟᴀɴɢᴜᴀɢᴇs ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ++ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄ# ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴊᴀᴠᴀ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴄss ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴘʏᴛʜᴏɴ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛʏᴘᴇsᴄʀɪᴘᴛ ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴊᴀᴠᴀsᴄʀɪᴘᴛ ᴄʟɪᴄᴋ ʜᴇʀᴇ ʜᴛᴍʟ ʟᴀɴɢᴜᴀɢᴇ ᴄʟɪᴄᴋ ʜᴇʀᴇ

Javascript quiz 👉 click here

Subscribe our channel for termux hacking,python animation,coding,html ,telegram bot tips & trick related - 👉 https://youtube.com/@CODEBOMBS Subscribe our channel for termux hacking, designing, tips & trick, bot making related - 👉 https://youtube.com/@TECHINDNN