Hi all,
I am trying to assign a file path to a variable in Typescript, which is being executed in Node.JS.
This is the path:
const path = 'C:\\Software Development\\2020_12_21_NET_NodeJS\\NET_NodeJS_01';
error - [Octal escape sequences are not allowed in strict mode.]
My thought at that point was to break the string into elements of an array, then join the elements into the finished string.
const path_parts = [
'C:\\Software Development\\',
'2020_12_21_NET_NodeJS\\NET_NodeJS_01'
];
const path = path_parts.join ();
error - [Numeric separators are not allowed at the end of numeric literals]
Try again:
const path_parts = [
'C:\\Software Development',
'\\2020',
'_12', '_21_NET_NodeJS\\NET_NodeJS_01'
];
error - [Octal escape sequences are not allowed in strict mode.]
Try again:
const path_parts = [
'C:\\Software Development\\',
'2020',
'_12', '_21_NET_NodeJS\\NET_NodeJS_01'
];
error - [Unexpected number]
Try again:
const path_parts = [
'C:\\Software Development\\',
'2020',
'_', '12', '_21_NET_NodeJS\\NET_NodeJS_01'
];
error - [Unexpected number]
Try removing the first element in the array, then try again:
const path_parts = [
'2020',
'_12', '_21_NET_NodeJS\\NET_NodeJS_01'
];
no error
Any help would be appreciated!
milton pilsPosted Sep 14, 2021, 7:53 AM
The fifth and final phase of the development cycle is known as release engineering mlsdev.com/services/custom-software-development. This stage involves software product testing. During this phase, software engineers will be looking to make any fixes or modifications that are needed before the software is released to the public. This is very important as software products that are released too early have the potential to experience many bugs and issues that may not be fixable. Thus, the planning process should be completed before the software development may begin.