Mutability vs Immutability in JavaScript

Free Web development courses with real-time projects Start Now!!

Program 1

"use strict"
const ps=require("prompt-sync")
const prompt=ps({sigint:true})

let s1=prompt("Enter a string")  // Dataflair
console.log(s1.concat(" Indore MP").toUpperCase())

//s1=s1.toLowerCase()
//s1.concat("indore")

If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *